[PATCH] Fix column SQL

Поиск
Список
Период
Сортировка
От Timon
Тема [PATCH] Fix column SQL
Дата
Msg-id CAAeC-SswoeyJHdFpH+HQ60PCqtTgsoGdtxYnF=OWmk_L=vgCCg@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Fix column SQL  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
attached patch fixes SQL of column in SQL pane.
sql should be like
ALTER TABLE table ADD COLUMN tms timestamp without time zone NOT NULL
DEFAULT now();
and not
ALTER TABLE table ADD COLUMN tms timestamp without time zone;
ALTER TABLE table ALTER COLUMN tms SET NOT NULL;
ALTER TABLE table ALTER COLUMN tms SET DEFAULT now();

it avoids not null constraint problem when you add column to existing
table with some data

--
All bugs reserved

Вложения

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: 1.16b4 upgrade report
Следующее
От: Dave Page
Дата:
Сообщение: Re: [PATCH] Fix column SQL