Re: Insert NULL for ''

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Re: Insert NULL for ''
Дата
Msg-id 3EE9DDC0.7090402@mascari.com
обсуждение исходный текст
Ответ на Re: Insert NULL for ''  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Insert NULL for ''  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Insert NULL for ''  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-general
Tom Lane wrote:

> "Daniel Gehrke" <dgehrke@neusta.de> writes:
>
>>Is there any possibility to get postgresql to insert NULL when I do "insert
>>into foo (bar) values ('')?

...

> I can think of a couple of possible approaches:
>
> * Define a view in which the corresponding column is actually text not
> date

...

> * Give up and make the column be actually type text.

What would be really neat is the ability of CREATE CAST to override
the default implementation and at the same time let the override call
the "base" implementation, if necessary.

Mike Mascari
mascarm@mascari.com






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

Предыдущее
От: Roland Glenn McIntosh
Дата:
Сообщение: Re: How can I insert a UTF-8 character with psql?
Следующее
От: sector119@mail.ru
Дата:
Сообщение: tsearch - v2 new dict