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 ''
Re: Insert NULL for '' |
Список | 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 по дате отправления: