🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Can Compile this statement

#706
From: Brian Ellul
Date: Fri, 27 Jul 2007 12:36
54 lines
3306 bytes
Not really! I just removed the alias (seemed irrelevant in this case) and it 
compiled fine. Unfortunately, I didn't have time to continue experimenting 
this issue.

"Kjell Ljungqvist" <kjell@REMOVETHIS.iki.fi> wrote in message 
news:46a9ce64$1@newsgroups.borland.com...
> Hi!
>
> Did you find any solution or reason for this? We are too experiencing the 
> same kind of problem with IB2007. First it seemed like it only happened on 
> IB2007 on Linux but after updating a Windows-server to IB 2007 SP2 these 
> kind of problems started to appear there too. It caused so much trouble in 
> our application so we had to downgrade to IB 2007 SP1.
> The first (seemingly Linux-related) problem still exist though.
>
> I will try to get some appropriate test material gathered during the next 
> few days but would also like to know if anything followed from this 
> NG-question.
>
> Regards,
> Kjell Ljungqvist
>
>
> "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> wrote in message 
> news:4682823d$1@newsgroups.borland.com...
>> Brian Ellul wrote:
>>> I have a SP which used to compile under IB7.1 but doesn't with IB2007!
>>>
>>> Update InvDtl I
>>> Set    I.GrossAmount = I.GrossAmount + :AmountDifference_G,
>>>         I.NetAmount   = I.NetAmount   + :AmountDifference_N
>>> Where  I.CompanyID   = :iCompanyID
>>> And    I.InvID       = :iInvID
>>> And    I.LineType Not In ('A','C')
>>> And    I.RowCounter  = :MinRow
>>> And    I.ProductID   = :ProductID;
>>>
>>> error: alias I conflicts with an alias in the same statement
>>>
>>> If I remove the alias 'I', then it's fine. Was this changed in IB2007?
>>
>> That's weird, I don't see anything in the statement that should cause 
>> this error, it all looks good to me. If you can spare the time, maybe you 
>> could narrow down more what "offends" IB2007 - is it one of the items in 
>> the set clause or the where clause, is it just one or any? Looks like a 
>> bug.
>>
>> -- 
>> Wayne Niddery - Winwright, Inc (www.winwright.ca)
>> "Nature abhors the vacuum tube." - J.R. Pierce, Bell Labs engineer who
>> coined the term 'transistor'
>>
>
> 
Technical Details
Message-ID: <46a9e5bb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <468211ea@newsgroups.borland.com> <4682823d$1@newsgroups.borland.com> <46a9ce64$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,9dc1e417b6fe5383
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Brian Ellul" <brianellul@ecenglish.nospan.com>
Newsgroups: borland.public.interbase.sql
References: <468211ea@newsgroups.borland.com> <4682823d$1@newsgroups.borland.com> <46a9ce64$1@newsgroups.borland.com>
Subject: Re: Can Compile this statement
Date: Fri, 27 Jul 2007 14:36:00 +0200
Lines: 56
Organization: European |Centre
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.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 213.165.165.162
Message-ID: <46a9e5bb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185539515 213.165.165.162 (27 Jul 2007 05:31:55 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail