From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Maurizio Ortolan <crix98__@tin.it>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Cc: pgsql-ports@postgresql.org
Cc: pgsql-admin@postgresql.org
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-patches@postgresql.org
Subject: Re: [PATCHES] Error in the date field (with NULL value...).Thanks!
Date: Fri, 30 Mar 2001 06:22:21 +0000
Message-ID: <3AC4261D.4B452415@alumni.caltech.edu> (raw)
References: <5.0.2.1.2.20010328204925.033d7e68@box.tin.it>
> 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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: lockhart@alumni.caltech.edu, crix98__@tin.it, pgsql-hackers@postgresql.org, pgsql-general@postgresql.org, pgsql-ports@postgresql.org, pgsql-admin@postgresql.org, pgsql-bugs@postgresql.org, pgsql-patches@postgresql.org
Subject: Re: [PATCHES] Error in the date field (with NULL value...).Thanks!
In-Reply-To: <3AC4261D.4B452415@alumni.caltech.edu>
References: <5.0.2.1.2.20010328204925.033d7e68@box.tin.it> <3AC4261D.4B452415@alumni.caltech.edu>
* 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