dbTalk Databases Forums  

Problem with SYS_CONNECT_BY_PATH i SPL

comp.databases.informix comp.databases.informix


Discuss Problem with SYS_CONNECT_BY_PATH i SPL in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ulf
 
Posts: n/a

Default Problem with SYS_CONNECT_BY_PATH i SPL - 09-22-2011 , 11:01 AM






Version 11.50.FC7

I am using a SELECT SYS_CONNECT_BY_PATH in a foreach in a stored
procedure.

SELECT SYS_CONNECT_BY_PATH( id,'/')||'/' as platspath
INTO variable

FROM plats START WITH id = 1407 CONNECT BY PRIOR parent_id=id
ORDER BY level DESC;

If I run the SPL I get a -1214, SMALLINT exceeds 32000.

There is no smallints among the variables I use, I have reduced it to
be only one varchar(100).

If I run the select by itself it works fine.

Any ideas ?


Ulf

Reply With Quote
  #2  
Old   
Ulf
 
Posts: n/a

Default Re: Problem with SYS_CONNECT_BY_PATH i SPL - 09-22-2011 , 02:04 PM






Just found the following bug report

IC77736: CONNECT BY (HIERARCHICAL) QUERY EXECUTED WITHIN STORED
PROCEDURE CAN LEAD TO ERROR 1214

This is not fixed yet, guess I have to find another way to solve the
problem


Ulf

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.