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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PGS 7.2 : Insert with wrong number of values did not fail
Дата
Msg-id 557.1109003632@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PGS 7.2 : Insert with wrong number of values did not fail  (Geoffrey KRETZ <gk@4js.com>)
Список pgsql-general
Geoffrey KRETZ <gk@4js.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Jeremiah Megie
Дата:
Сообщение: Unix Domain Socket Error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unix Domain Socket Error