Tom Lane wrote:
> "Daniel Gehrke" <dgehrke(at)neusta(dot)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(at)mascari(dot)com