Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] Error in the date field (with NULL value...).Thanks!

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Maurizio Ortolan <crix98__(at)tin(dot)it>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, pgsql-ports(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCHES] Error in the date field (with NULL value...).Thanks!
Date: 2001-03-30 06:22:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-adminpgsql-bugspgsql-generalpgsql-hackerspgsql-patchespgsql-portspgsql-sql
> 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

In response to

pgsql-patches by date

Next:From: Justin CliftDate: 2001-03-30 06:40:24
Subject: Modulo bug patch for 7.0.3
Previous:From: Bruce MomjianDate: 2001-03-30 03:49:42
Subject: Re: Re: [ODBC] Cleanup of ODBC

pgsql-ports by date

Next:From: sashaDate: 2001-03-30 06:31:25
Subject: NOTICE: IpcMemoryDetach: shmdt(0x???????): Invalid argument
Previous:From: Jason TishlerDate: 2001-03-29 21:55:17
Subject: Re: Cygwin PostgreSQL Regression Test Problems (Revisited)

pgsql-admin by date

Next:From: Pete FormanDate: 2001-03-30 10:07:25
Subject: Re: Re: [PORTS] pgmonitor and Solaris
Previous:From: Bruce MomjianDate: 2001-03-30 03:12:45
Subject: User administration tool

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-03-30 13:35:37
Subject: unix_socket_directory isn't used by all bin tools
Previous:From: sashaDate: 2001-03-30 05:37:49
Subject: PORTS : Windows 95/98/2000

pgsql-hackers by date

Next:From: Zeugswetter Andreas SBDate: 2001-03-30 07:03:55
Subject: AW: Unsigned int functions
Previous:From: Thomas LockhartDate: 2001-03-30 06:17:31
Subject: Re: Unsigned int functions

pgsql-general by date

Next:From: Trewern, BenDate: 2001-03-30 08:12:10
Subject: RE: Starting postgresql on startup
Previous:From: dianaDate: 2001-03-30 06:09:30
Subject: function to create a table

pgsql-sql by date

Next:From: Alessio BragadiniDate: 2001-03-30 07:30:40
Subject: 'Include' function in SQL scripts
Previous:From: Tom LaneDate: 2001-03-30 06:15:15
Subject: Re: [HACKERS] Re: possible row locking bug in 7.0.3 & 7.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group