Skip to site navigation (Press enter)

Re: [BUGS] INSERT doesn't like (.)

Tom Lane Mon, 09 Oct 2000 07:13:01 -0700

[EMAIL PROTECTED] 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
  • Previous message
  • View by thread
  • View by date
  • Next message
  • [BUGS] INSERT doesn't like (<table>.<column>... pgsql-bugs
    • Re: [BUGS] INSERT doesn't like (<table>.<c... Tom Lane
    • Re: [BUGS] INSERT doesn't like (<table>.<c... Peter Eisentraut

Reply via email to

The Mail Archive
  • The Mail Archive home
  • pgsql-bugs - all messages
  • pgsql-bugs - about the list
  • Expand
  • Previous message
  • Next message
  • The Mail Archive home
  • Add your mailing list
  • FAQ
  • Support
  • Privacy
  • 25203.971101223@sss.pgh.pa.us