Re: need help with copy function - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: need help with copy function
Date
Msg-id 20040820124556.GA20737@wolff.to
Whole thread Raw
In response to need help with copy function  ("Robert Ngo" <robertngo@perridot.com>)
List pgsql-general
On Thu, Aug 19, 2004 at 16:47:55 +0800,
  Robert Ngo <robertngo@perridot.com> wrote:
> copy swpparm from stdin using delimiters ';';
>
> exampaper;02;1;Bahasa Melayu;M;A;2002-11-27;system;;
>
> \.
>
> why does the above command return a error message

It looks like the column that is associated with the empty field has a
type of date. The empty string is not a valid date. If you want a NULL
date then you need to use \N instead of an empty string.

>
>
> ERROR:  copy: line 1, Bad date external representation ''
> PQendcopy: resetting connection
>

pgsql-general by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: Help with optimizing query
Next
From: Bruno Wolff III
Date:
Subject: Re: libpq: passwords WAS: scripting & psql issues