🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: no current record for fetch operation mining explicit left joins and implicit inner joins

#110
From: Martijn Tonies
Date: Thu, 05 Jun 2008 06:40
49 lines
2865 bytes
"Massimiliano Trezzi" <support_leavethis_@intesanet.it> wrote in message
news:4844ec75$1@newsgroups.borland.com...
> I never wrote manually a query like this, but some _good_ tools do it!
>
> I think this is a bug beacuse:
>     SQL-92 should accept this syntax: it's bad but it's correct!
>     all other good databases work with this syntax,
>     you can have the same problem making a good query with implicit joins
> made over some view with explicit outer joins (have I to look inside the
> view before building the query?)
>     In Interbase 5.6 this worked
>
> This is not as designed because:
>     it happens when fetching records not after parsing the query,
>     the error is not systematic, but it comes only with outer joins and
only
> in some circustances
>     the message is clearly related to some internal code (from sql we do
not
> manage fetching)
>
> If it was designed as this,  I'd expect a message like this "You cannot
mix
> explicit joins with implicit joins" and it should be systematic.

Exactly. The current error message is total bogus and doesn't help the user
at all.

If the error is caused by the mixed join syntax (which shouldn't be a
problem
at all), then it should be a clear error message.

Nevertheless, the syntax IS valid (in SQL 92) and should be supported, after
all, it is parsed by InterBase, but not properly executed. This is NOT a
user
problem, but an InterBase problem.


-- 
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Technical Details
Message-ID: <48478970$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <483d879c$1@newsgroups.borland.com> <483e198f$1@newsgroups.borland.com> <483e8221$1@newsgroups.borland.com> <483eb8db$1@newsgroups.borland.com> <4844ec75$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,c962a98f7a2cfe5f
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Martijn Tonies" <m.tonies@upscene.removethis.com>
Newsgroups: borland.public.interbase.sql
References: <483d879c$1@newsgroups.borland.com> <483e198f$1@newsgroups.borland.com> <483e8221$1@newsgroups.borland.com> <483eb8db$1@newsgroups.borland.com> <4844ec75$1@newsgroups.borland.com>
Subject: Re: no current record for fetch operation mining explicit left joins and implicit inner joins
Date: Thu, 5 Jun 2008 08:40:54 +0200
Lines: 51
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1914
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914
NNTP-Posting-Host: 212.238.159.172
Message-ID: <48478970$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212647792 212.238.159.172 (4 Jun 2008 23:36:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail