Re: Insert NULL for ''

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: Mike Mascari <mascarm(at)mascari(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Daniel Gehrke <dgehrke(at)neusta(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: Insert NULL for ''
Date: 2003-06-14 15:55:44
Message-ID: 3EEB4580.9050106@wildenhain.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-14 15:59:08 Re: full featured alter table?
Previous Message Bruno Wolff III 2003-06-14 15:41:00 Re: Index not being used in MAX function (7.2.3)