🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Join - understand strange results

#395
From: Kjell Ljungqvist
Date: Thu, 15 May 2008 17:34
56 lines
3117 bytes
On the topic of joining procs do you think that this might be a case of the 
same _definite_ bug in IB 2007 which I have mentioned in the post "Joining 
stored procs in a query gives different results in IB 2007 and IB 7.5" in 
this news group on February 8, 2008?
This same bug is entered in QC with number 57839 but it hasn't received any 
comments there.

Regards,
Kjell

"Wayne Niddery (TeamB)" <wniddery@chaffaci.on.ca> wrote in message 
news:480f8e10$1@newsgroups.borland.com...
>
> "Adalberto Baldini" <finman@swissonline.ch> wrote in message 
> news:480e09f4$1@newsgroups.borland.com...
>> If I  try :
>> left join  ABFL_USRSOCINP_UNO (:UTENTE, a.csoc, a.nreserc, 'ABIT', 
>> 'DETO') b
>> on (b.abinp = 'ABIT' and b.fil = 'DETO' )
>> where a.conto = '0601' and a.sezio = '5' and a.abinp = 'ABIT' and a.fil =
>> 'DETO'
>>
>> OR
>>
>> left join  ABFL_USRSOCINP_UNO (:UTENTE, a.csoc, a.nreserc,  'ABIT', 
>> 'DETO')
>> b
>> on (b.abinp = a.abinp and b.fil = a.fil )
>> where a.conto = '0601' and a.sezio = '5' and a.abinp = 'ABIT' and a.fil =
>> 'DETO'
>>
>> I get  right data:
>>
>> select [..]
>> left join  ABFL_USRSOCINP_UNO (:UTENTE, a.csoc, a.nreserc, a.abinp, 
>> a.fil) b
>> on (b.abinp = a.abinp and b.fil = a.fil )
>> where a.conto = '0601' and a.sezio = '5' and a.abinp = 'ABIT' and a.fil =
>> 'DETO'
>>
>> I get
>> ABIT   DETO    null null null null
>
> That definitely is a puzzle, it looks like the data must be right, so 
> possibly there's a bug somewhere.
>
> What happens if you, using IBConsole or ISQL, simply select directly from 
> the stored procedure passing various parameters? Do you always get correct 
> returns? Is the stored proc properly calling SUSPEND to return a result 
> set rather than a single set of return values? (Even if it is designed to 
> always return just one record, if you are going to use it as part of a 
> select statement it must call SUSPEND as far as I know).
>
> -- 
> Wayne Niddery - TeamB (www.teamb.com)
> Winwright, Inc. (www.winwright.ca) 
Technical Details
Message-ID: <482c7433@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <480c85b4$1@newsgroups.borland.com> <480ca9f3$1@newsgroups.borland.com> <480e09f4$1@newsgroups.borland.com> <480f8e10$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,11ad783c403646e4
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kjell Ljungqvist" <kjell@REMOVETHIS.iki.fi>
Newsgroups: borland.public.interbase.sql
References: <480c85b4$1@newsgroups.borland.com> <480ca9f3$1@newsgroups.borland.com> <480e09f4$1@newsgroups.borland.com> <480f8e10$1@newsgroups.borland.com>
Subject: Re: Join - understand strange results
Date: Thu, 15 May 2008 20:34:37 +0300
Lines: 58
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 213.250.81.14
Message-ID: <482c7433@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1210872883 213.250.81.14 (15 May 2008 10:34:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.isoc.lu!newsgroups.borland.com!not-for-mail