pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken J. Wright <ken@ori-ind.com>
To: pgsql-interfaces@postgreSQL.org
Subject: copy command & null datetime
Date: Sun, 07 Mar 1999 19:07:53 -0800
Message-ID: <3.0.32.19990307190751.0088d650@ren.cncware.com> (raw)

The following example will cause COPY to fail on input:

xxx|yyy|zzz||aaa|bbb|

where the empty field in between zzz & aaa is of type datetime (don't know
about other types). I know a \N will fix this, but interpreting an empty
import field as NULL would certainly beef up COPY as other database systems
don't output the \N which is unique to PostgreSQL. Wish list item?

Ken




view thread (6+ messages)  latest in thread

Message-ID: <3.0.32.19990307190751.0088d650@ren.cncware.com>
Permalink:  ../3.0.32.19990307190751.0088d650@ren.cncware.com/
Also on:    postgresql.org/message-id/3.0.32.19990307190751.0088d650@ren.cncware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: ken@ori-ind.com
  Subject: Re: copy command & null datetime
  In-Reply-To: <3.0.32.19990307190751.0088d650@ren.cncware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox