Search Postgresql Archives

Re: PGS 7.2 : Insert with wrong number of values did not fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Geoffrey KRETZ <gk@xxxxxxx> writes:
> I've got a question about a difference beetween PGS 7.2 and PGS 7.4 
> behaviours.

> With PGS 7.2 :
>  INSERT INTO table (col1, col2) VALUES (val1) doesn't fail

> With PGS 7.4 :
>  INSERT INTO table (col1, col2) VALUES (val1) failed

> Is it a known bug ?

More a deliberate change in behavior.  The old behavior was intentional
but we decided it was too much at variance with the SQL spec.  Now you
can only omit columns when you don't specify a column name list.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux