🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11190

ib 6.5 stored proc problem

#11190
From: odahan
Date: Tue, 10 Dec 2002 02:16
45 lines
2237 bytes
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: <3df54e54@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,c4eed99a7e96914c,start
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-09 18:27:43 PST
From: "odahan" <odahan@e-naxos.com>
Newsgroups: borland.public.interbase.sql
Subject: ib 6.5 stored proc problem
Date: Tue, 10 Dec 2002 03:16:03 +0100
Lines: 47
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.91.237
Message-ID: <3df54e54@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039486548 62.147.91.237 (9 Dec 2002 18:15:48 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail