Article View: borland.public.interbase.sql
Article #11192Re: ib 6.5 stored proc problem / solved - answer
From: odahan
Date: Tue, 10 Dec 2002 03:36
Date: Tue, 10 Dec 2002 03:36
61 lines
2818 bytes
2818 bytes
Ok... I found what was wrong... The problem is in the use of CHAR instead of VARCHAR... As it's 4:35 AM here perhaps muss I go sleeping instead of coding :-) -- Olivier Dahan ______________________________________________________ ICQ#: 165591752 More ways to contact me: http://wwp.icq.com/165591752 ______________________________________________________ "odahan" <odahan@e-naxos.com> a οΏ½crit dans le message de news: 3df54e54@newsgroups.borland.com... : Hi all, : : problem is simple : it seems that using a parameter in a select after CONTAINING : doesn't work. : I explain more deeply : : Given the following stored proc : : : CREATE PROCEDURE SAMEFILE ( : IFILENAME CHAR(250)) : RETURNS ( : BDDCODE INTEGER, : FNAME CHAR(250), : FSIZE INTEGER, : FMODIF DATE) : AS : begin : for Select distinct b.code, b.filename, b.FileSize, b.Modified : from bddbag b : where b.FILENAME containing :IFILENAME /** pb here! **/ : into :BDDCODE, :FNAME, :FSIZE, :FMODIF : do : suspend; : end : : The problem is : if I use the parameter IFILENAME stored proc returns an empty : dataset. If I use a hardcoded string like 'foo' instead of the parameter , : that's working... : : The worse : using the parameter, all seems to be ok when tracing the procedure : execution under debugger (like the one in QuickDesk). But used in interactive : mode (ibconsole for example), the result set is empty. : : I'll be glad to know if this is a known problem and if there is a way to turn : around. : : Thanks in advance, : : : -- : : Olivier Dahan : ______________________________________________________ : ICQ#: 165591752 : More ways to contact me: http://wwp.icq.com/165591752 : ______________________________________________________ : :
Technical Details
Message-ID:
<3df56120@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3df54e54@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 114a0e,c4eed99a7e96914c X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-09 19:40:09 PST From: "odahan" <odahan@e-naxos.com> Newsgroups: borland.public.interbase.sql References: <3df54e54@newsgroups.borland.com> Subject: Re: ib 6.5 stored proc problem / solved - answer Date: Tue, 10 Dec 2002 04:36:14 +0100 Lines: 63 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.147.90.124 Message-ID: <3df56120@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1039491360 62.147.90.124 (9 Dec 2002 19:36:00 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail