Re: BUG #5614: Varchar column (with DEFAULT NULL) stores 'UL' value instead of null

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5614: Varchar column (with DEFAULT NULL) stores 'UL' value instead of null
Дата
Msg-id 2675.1281637611@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5614: Varchar column (with DEFAULT NULL) stores 'UL' value instead of null  ("Mariusz Majer" <mmajer@janmedia.com>)
Ответы Re: BUG #5614: Varchar column (with DEFAULT NULL) stores 'UL' value instead of null  ("mmajer@janmedia.com" <mmajer@janmedia.com>)
Список pgsql-bugs
"Mariusz Majer" <mmajer@janmedia.com> writes:
> There has been a table ecom2_orders for a while (~0.5m records). After
> executing query:

> ALTER TABLE ecom2_orders ADD COLUMN password_pdf character varying(50);

> when new rows are added, column password_pdf is filled with 'UL' value
> rather than null

Works fine here.  Perhaps you have an incorrect build of 8.3.11?

Another possibility is that you omitted some important step.
Ordinarily, \d wouldn't show any explicit "default" modifier for a
column created as above.  Maybe you did an ALTER SET DEFAULT in a
strange way?

            regards, tom lane

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BUG #5611: SQL Function STABLE promoting to VOLATILE
Следующее
От: Robert Haas
Дата:
Сообщение: Re: BUG #5613: cannot delete