Re: Question about NOT NULL and default values.

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема Re: Question about NOT NULL and default values.
Дата
Msg-id 855e4dcf0810162026j1e3d47b6n5f7b4500e90a615c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Question about NOT NULL and default values.  (Chris <dmagick@gmail.com>)
Ответы Re: Question about NOT NULL and default values.  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
> Not sure how you do this in rails but if you use DEFAULT in the query it
> works:
>
>> create table a(a int default 5);
> CREATE TABLE
>
>> insert into a(a) values (DEFAULT);
> INSERT 0 1

Unfortunately the SQL is being generated by the ORM.  I really don't
want to bypass the ORM that would be way too painful.

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Question about NOT NULL and default values.
Следующее
От: Mike Christensen
Дата:
Сообщение: Question about fulltext search and to_tsvector function