dbTalk Databases Forums  

Re: [BUGS] Error in sql sintax

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] Error in sql sintax in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stephan Szabo
 
Posts: n/a

Default Re: [BUGS] Error in sql sintax - 11-13-2004 , 03:47 PM







On Tue, 9 Nov 2004, [iso-8859-1] Abaco inform=E1tica s.a. wrote:

Quote:
this sentence is accepted by postgresql sintax analizer but we think
that's incorrect:

select * from table T where T.field =3D table.field_1

it take the result as an inner join between 'T' and 'table' which not
exist ... just exists 'T'.
Yes, because PostgreSQL adds defined behavior for such queries beyond that
of the spec for queries which reference tables not mentioned in the from
clause. In recent versions this can be controlled by a runtime parameter
(add_missing_from).


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.