Re: Insert NULL for ''

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: Insert NULL for ''
Дата
Msg-id 3EEB4580.9050106@wildenhain.de
обсуждение исходный текст
Ответ на Re: Insert NULL for ''  (Mike Mascari <mascarm@mascari.com>)
Ответы Re: Insert NULL for ''  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Hi,


Mike Mascari wrote:
...

>
>
> 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.

This is already possible: you just have to define your own
type which would behave like a date for all operations
but not for text2yourdate, which would then accept ''
for null as well.

Might be a little bit work, buts perfectly doable.

Regards
Tino


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Growing Database Size Solved
Следующее
От: Mike Mascari
Дата:
Сообщение: Re: Insert NULL for ''