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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Geoffrey KRETZ <gk(at)4js(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PGS 7.2 : Insert with wrong number of values did not fail
Date: 2005-02-21 16:33:52
Message-ID: 557.1109003632@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Geoffrey KRETZ <gk(at)4js(dot)com> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-02-21 16:52:08 Re: Unix Domain Socket Error
Previous Message Jeremiah Megie 2005-02-21 16:24:52 Unix Domain Socket Error