dbTalk Databases Forums  

[BUGS] BUG #1364: using field names or table names with blanks

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


Discuss [BUGS] BUG #1364: using field names or table names with blanks in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pit Mueller
 
Posts: n/a

Default [BUGS] BUG #1364: using field names or table names with blanks - 12-29-2004 , 05:13 PM







The following bug has been logged online:

Bug reference: 1364
Logged by: Pit Mueller
Email address: fmi-soft (AT) gmx (DOT) de
PostgreSQL version: 8.0
Operating system: WINXP
Description: using field names or table names with blanks
Details:

MS SQL Server uses a quite elegant method for using field names and table
names:

select [field] from [table]
f.ex. select [my field] from [the big table]

PostgreSQL 8.0 should support this notation too.
Brackets are not supported at the moment -> the SQL parser notifies an
syntax error

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1364: using field names or table names with blanks - 12-29-2004 , 06:23 PM






"Pit Mueller" <fmi-soft (AT) gmx (DOT) de> writes:
Quote:
MS SQL Server uses a quite elegant method for using field names and table
names:

select [field] from [table]
f.ex. select [my field] from [the big table]
One man's "elegant" is another's "ugly and nonstandard".

Quote:
PostgreSQL 8.0 should support this notation too.
Not likely. Use double quotes like the SQL standard tells you to:

select "my field" from "the big table"

One would hope that SQL Server takes this too, since they claim some
amount of spec compliance.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


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.