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

updating table where one date field is null

From: richard terry <rterry(at)gnumed(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: updating table where one date field is null
Date: 2008-07-17 21:54:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
I'm passing some information to postges (from gambas basic), which gets the 
data from date type

eg date1 as date
     date2 as date

(IN the postgres database the default on the date field is null)

my problem is that postgres baulks when I"ve not put a date into one of the 
gambas date variables with the message:

"invalid syntax for type date '00:00:00'"

my sql is far more complex but reduced to the date part reads something like 

insert into mytable (date1, date2) values 


I wondered if anyone could volunteer a solution




pgsql-novice by date

Next:From: Stephan SzaboDate: 2008-07-17 22:34:14
Subject: Re: updating table where one date field is null
Previous:From: John DeSoiDate: 2008-07-17 11:36:23
Subject: Re: Stopping a transaction as soon as an error occurs

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