Re: COPY error with null date

Поиск
Список
Период
Сортировка
От Rajeev rastogi
Тема Re: COPY error with null date
Дата
Msg-id BF2827DCCE55594C8D7A8F7FFD3AB7713DDDBA85@SZXEML508-MBX.china.huawei.com
обсуждение исходный текст
Ответ на COPY error with null date  (Ashmita Jain <ashmita.j@hcl.com>)
Ответы Re: COPY error with null date  (Alban Hertroys <haramrae@gmail.com>)
Список pgsql-general

On 21st March 2014, Ashmita Jain Wrote:

 

>It is taking date as an empty string.

>Try defining the empty field as ‘\N’ in your source file.

 

‘\N’ in copy source file always results into an empty string (unless something written in new line), which is correct only.

So COPY from such source file will always fail except for the case if the column data-type is string.

 

In your case COPY is failing or it is able to insert empty string?

 

 

Thanks and Regards,

Kumar Rajeev Rastogi

 

В списке pgsql-general по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Do we have a range of SQLSTATE codes assigned for custom use?
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: COPY error with null date