Article View: borland.public.interbase.sql
Article #11206Re: ib 6.5 stored proc problem
From: Rafael Vacas
Date: Wed, 11 Dec 2002 12:02
Date: Wed, 11 Dec 2002 12:02
45 lines
2251 bytes
2251 bytes
On Tue, 10 Dec 2002 03:16:03 +0100, "odahan" <odahan@e-naxos.com> wrote: >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)) Try VARCHAR(250) here ... >RETURNS ( > BDDCODE INTEGER, > FNAME CHAR(250), > FSIZE INTEGER, > FMODIF DATE) >AS >begin ... or trim IFILENAME here ... or both > 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,
Technical Details
Message-ID:
<j7aevus6imsi5sv6g0qvn6g1ln4lrmlmtq@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!news-hub.cableinet.net!blueyonder!proxad.net!proxad.net!newsfeed.tpinternet.pl!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-7-bit X-Google-Thread: 114a0e,c4eed99a7e96914c X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-11 04:10:06 PST From: Rafael Vacas <rvacas@bit7.es> Newsgroups: borland.public.interbase.sql Subject: Re: ib 6.5 stored proc problem Date: Wed, 11 Dec 2002 13:02:49 +0100 Organization: Bit 7, S.L. Message-ID: <j7aevus6imsi5sv6g0qvn6g1ln4lrmlmtq@4ax.com> References: <3df54e54@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.98.123.244 X-Trace: newsgroups.borland.com 1039608056 213.98.123.244 (11 Dec 2002 04:00:56 -0800) Lines: 46 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!news-hub.cableinet.net!blueyonder!proxad.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail