From: | Lynna Landstreet <lynna(at)gallery44(dot)org> |
---|---|
To: | <josh(at)agliodbs(dot)com>, <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: No date = bad date? |
Date: | 2003-06-26 21:12:04 |
Message-ID: | BB20D9E4.465%lynna@gallery44.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
on 6/26/03 4:26 PM, Josh Berkus at josh(at)agliodbs(dot)com wrote:
>> Does anyone know of some reason why importing a text file that contains no
>> data for one date field would cause psql to tell me:
>>
>> ERROR: copy: line 1, Bad date external representation ''
>> lost synchronization with server, resetting connection
>
> Yes. For the "blank" date, you need to have an \N marker to indicate a NULL.
> Or you need to change your copy parameters to indicate that a zero length
> string is a NULL; check the COPY docs for details.
Thanks - I added "with null as ''" and it worked fine.
Lynna
--
Resource Centre Database Coordinator
Gallery 44
www.gallery44.org
From | Date | Subject | |
---|---|---|---|
Next Message | Nabil Sayegh | 2003-06-26 21:17:11 | Re: basic question |
Previous Message | Marie G. Tuite | 2003-06-26 21:06:14 | Re: basic question |