Re: Time / Date -fieldtype

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Aarni Ruuhimäki <aarni(dot)ruuhimaki(at)kymi(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Time / Date -fieldtype
Date: 2003-03-04 14:18:50
Message-ID: 20030304141850.GA16484@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, Mar 04, 2003 at 15:48:51 +0200,
Aarni Ruuhimäki <aarni(dot)ruuhimaki(at)kymi(dot)com> wrote:
> Hi folks !
>
> What is the proper type for date or timestamp so that the field can also be
> null or empty when inserting new rows?
>
> I have to have fields for applied, accepted and renewed for a product license
> and not all are necessarily present when creating a new product. Now I get
> 'bad timestamp external representation' for an empty form field.

'' is not the same as NULL .

Your app probably needs to look for empty date and/or timestamp strings
and replace them with NULL .

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Aarni Ruuhimäki 2003-03-04 14:41:08 Re: Time / Date -fieldtype
Previous Message Aarni Ruuhimäki 2003-03-04 13:48:51 Time / Date -fieldtype