Re: Null vs. Empty String in Postgres 8.3.8

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Null vs. Empty String in Postgres 8.3.8
Дата
Msg-id m2odcc563d11004042023wab049beamfa4acad2d49321e3@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Null vs. Empty String in Postgres 8.3.8  ("Wang, Mary Y" <mary.y.wang@boeing.com>)
Ответы Re: Null vs. Empty String in Postgres 8.3.8  (Peter Hunsberger <peter.hunsberger@gmail.com>)
Список pgsql-general
On Sun, Apr 4, 2010 at 9:03 PM, Wang, Mary Y <mary.y.wang@boeing.com> wrote:
> I still don't get it.  I do want a zero for the subversion_flags to be stored in the table.  But it returned an error
becauseit didn't like subversion_flags='' in the UPDATE SQL statement. 
>
> subversion_flags | integer       | not null default 0

Right. '' is not 0.  the old version of pgsql converted '' to 0 for
you, incorrectly.  Now if you want 0 you need to say 0.

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

Предыдущее
От: "Wang, Mary Y"
Дата:
Сообщение: Re: Null vs. Empty String in Postgres 8.3.8
Следующее
От: Peter Hunsberger
Дата:
Сообщение: Re: Null vs. Empty String in Postgres 8.3.8