473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

sql0901, reason "column number out of range"

Hello.

v8.2.1
Please try this:
---
create function t(v char(1))
modifies sql data
returns table
(
c char(1)
)
begin atomic
return select v from sysibm.sysdummy1;
end@

begin atomic
declare a char(1);
for v1 as
with t (c) as
(
select f.c
from sysibm.sysdummy1 d,
table(t(d.ibmreqd)) f(c)
)
select c from t
do
set a=v1.c;
end for;
end@
----
At my 8.2.1 I get sql0901 with this reason in begin atomic block.
There is no error if the function is declared without "modifies sql
data" clause.
I want to know if this bug has been fixed or not.

Sincerely,
Mark B.

Jun 2 '06 #1
3 7325
4.****@mail.ru wrote:
Hello.

v8.2.1
Please try this:
---
create function t(v char(1))
modifies sql data
returns table
(
c char(1)
)
begin atomic
return select v from sysibm.sysdummy1;
end@

begin atomic
declare a char(1);
for v1 as
with t (c) as
(
select f.c
from sysibm.sysdummy1 d,
table(t(d.ibmreqd)) f(c)
)
select c from t
do
set a=v1.c;
end for;
end@
----
At my 8.2.1 I get sql0901 with this reason in begin atomic block.
There is no error if the function is declared without "modifies sql
data" clause.
I want to know if this bug has been fixed or not.

Still fails on the DB2 Viper Test Drive.
Can you get an APAR opened?
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:

SQLCA Information

sqlcaid : SQLCA sqlcabc: 136 sqlcode: -901 sqlerrml: 26
sqlerrmc: column number out of range
sqlerrp : SQLNQ041
sqlerrd : (1) -2145779603 (2) 0 (3) 0
(4) 0 (5) -100 (6) 0
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate: 58004

Tell support that the error originates in SQLNQ041 (see sqlerrp above).
If anyone tries to give you a hard time refer them to me :-)

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jun 2 '06 #2
I haven't ever done this.
How can I do this?
I don't have an official copy of DB2...
Still fails on the DB2 Viper Test Drive.
Can you get an APAR opened?
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:

SQLCA Information

sqlcaid : SQLCA sqlcabc: 136 sqlcode: -901 sqlerrml: 26
sqlerrmc: column number out of range
sqlerrp : SQLNQ041
sqlerrd : (1) -2145779603 (2) 0 (3) 0
(4) 0 (5) -100 (6) 0
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate: 58004

Tell support that the error originates in SQLNQ041 (see sqlerrp above).
If anyone tries to give you a hard time refer them to me :-)

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab


Jun 2 '06 #3
4.****@mail.ru wrote:
I haven't ever done this.
How can I do this?
I don't have an official copy of DB2...

Never mind. Thanks for reporting. It won't be fixed in the V8 stream
though unless someone opens an APAR for it though.
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jun 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: John Baker | last post by:
Hi: I know this is a strange question, but I have inherited a system where files are copied and records re auto numbered (as an index field) )frequently, and I am wondering how high the number...
6
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the...
17
by: Darek | last post by:
Hi, I have a table, something similar to: create table my_table ( id char(32) not null primary key, num integer not null, code varchar(2) not null, name varchar(60) not null,
2
by: rusmo1 | last post by:
I have a GridvVew in which all of the columns are sortable. I want the first column to display the position of the row in the sorted order regardless of which column I've sorted or which direction...
35
by: erikwickstrom | last post by:
Hi all, I'm sorry about the newbie question, but I've been searching all afternoon and can't find the answer! I'm trying to get this bit of code to work without triggering the IndexError. ...
1
by: Ducknut | last post by:
Not so much a problem as a discussion. I am currently in the early stages of designing a database to hold a bunch of water quality data (e.g., concentrations of heavy metals in drinking water). Water...
4
by: Han | last post by:
when I exe my project in vs.net2005,I got the error following: Debug Assertion Failed! Program:........ File:c:\program files\microsoft visual studio 8\vc\include\vector Line:756 ...
2
by: RONSCHERER | last post by:
Hi. I write in VB. For some strange reason, throughout all the code written in one of my workbooks, the word "Range" had simply changed its case to "rANGE". eg: rANGE("C11").Copy ...
4
by: ajmastrean | last post by:
I cannot get any (hex) number in the "0x80"-"0x89" range (inclusive) to write properly to a file. Any number in this range magically transforms itself into "0x3F". For instance, debugging shows...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.