![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I realize this is fixable by the user with "AS count_x", this is more an issue that came in writing cross-vendor ORM modules in perl, where most other database vendors offer some sort of unique naming convention, but postgres' output column names are indistinguishable, for the same query. |
#3
| |||
| |||
|
|
Or show us where the standard mandates name munging and we will implement it. |
#4
| |||
| |||
|
|
I haven't looked at SQL99 or SQL2003, but most likely they say the same thing in two or three times as many words ;-) |
#5
| |||
| |||
|
|
It would be nice to have this text in HTML or info format. This PDF mess is really awkward. |
#6
| |||
| |||
|
|
Alvaro Herrera <alvherre (AT) alvh (DOT) no-ip.org> writes: It would be nice to have this text in HTML or info format. This PDF mess is really awkward. Yeah, that's why I tend to look at SQL92 or SQL99 first ... I have those drafts in plain-ASCII format, which is so much easier to grep and copy. Would love to lay my hands on plain-ASCII SQL2003. |
#7
| |||
| |||
|
|
Tom Lane wrote: Alvaro Herrera <alvherre (AT) alvh (DOT) no-ip.org> writes: It would be nice to have this text in HTML or info format. This PDF mess is really awkward. Yeah, that's why I tend to look at SQL92 or SQL99 first ... I have those drafts in plain-ASCII format, which is so much easier to grep and copy. Would love to lay my hands on plain-ASCII SQL2003. What I use is the text version I extracting using pdf2text (or something like that). While the formatting is very awkward, it is at least greppable. |
#8
| |||
| |||
|
|
Tom Lane wrote: I haven't looked at SQL99 or SQL2003, but most likely they say the same thing in two or three times as many words ;-) Thanks for the pointer. In SQL 2003, this is 7.12 query specification>: 17) Case: a) If the i-th <derived column> in the <select list> specifies an as clause> that contains a <column name> CN, then the <column name of the i-th column of the result is CN. b) If the i-th <derived column> in the <select list> does not specify an as clause> and the <value expression> of that <derived column> is a single column reference, then the <column name> of the i-th column of the result is the <column name> of the column designated by the column reference. c) Otherwise, the <column name> of the i-th column of the <query specification> is implementation dependent. So they actually simplified the third rule and we comply with it! It would be nice to have this text in HTML or info format. This PDF mess is really awkward. |

![]() |
| Thread Tools | |
| Display Modes | |
| |