Re: Date format errors - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: Date format errors
Date
Msg-id 20030426181808.GA10048@wolff.to
Whole thread Raw
In response to Date format errors  ("Craig Elston" <CElston@PICsolutions.com>)
List pgsql-novice
On Wed, Apr 23, 2003 at 16:28:27 +0200,
  Craig Elston <CElston@PICsolutions.com> wrote:
>
> When trying to insert a date into a table using HTML Forms & PHP, PGAdminII,
> WINSql and even psql on the server I get the following error.
>
>     Query failed: ERROR: Bad date external representation
> The syntax I am using is bog simple.
>
>      INSERT INTO repairs VALUES
>     (nextval('repairs_id_seq'), '$date', '$username', '$item',
> '$serialnumber', '$fault', '$company', '$jobcard',     '$datereturned',
> '$comments')

What do the values of $date and $datereturned look like?
Note in particular that '' is not a valid date value. You need to use
NULL if you want a null value.


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: SELECT using RegEx inside a POSITION function
Next
From: nolan@celery.tssi.com
Date:
Subject: Re: Date format errors