Re: INSERT doesn't like (<table>.<column>)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: adam_l_levine(at)hotmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: INSERT doesn't like (<table>.<column>)
Date: 2000-10-09 14:20:23
Message-ID: 25203.971101223@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> I'm using Dynamo connected to Postgres. The PreparedStatement
> generated for an INSERT works on other dbs, but Postgres complains
> with a parsing error.
> specifically:
> INSERT into <table> (<table>.<column>) VALUES (<value>);

What's your definition of "other dbs"? The above statement is quite
clearly in violation of the SQL92 and SQL99 specifications:

<insert statement> ::=
INSERT INTO <table name>
<insert columns and source>

<insert columns and source> ::=
[ <left paren> <insert column list> <right paren> ]
<query expression>
| DEFAULT VALUES

<insert column list> ::= <column name list>

<column name list> ::=
<column name> [ { <comma> <column name> }... ]

<column name> ::= <identifier>

I'm not particularly excited about supporting non-SQL variant syntaxes
that add no functionality.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2000-10-09 15:18:24 Re: INSERT doesn't like (<table>.<column>)
Previous Message VARGA, Peter 2000-10-09 14:06:43