Re: Error in the date field (with NULL value...).Thanks! - Mailing list pgsql-patches

From Thomas Lockhart
Subject Re: Error in the date field (with NULL value...).Thanks!
Date
Msg-id 3AC4261D.4B452415@alumni.caltech.edu
Whole thread Raw
In response to Error in the date field (with NULL value...).Thanks!  (Maurizio Ortolan <crix98__@tin.it>)
List pgsql-patches
> How can I "binds" PostgreSQL to consider '' as null ?

You can modify src/backend/utils/{datetime,date,timestamp}.c to accept
an empty string as a null value. But imho it is better to fix this in
your input file, perhaps using sed:

  sed "s/''/NULL/g" < informix.dump > pg.dump

                        - Thomas

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Re: [ODBC] Cleanup of ODBC
Next
From: Justin Clift
Date:
Subject: Modulo bug patch for 7.0.3