Re: Trouble with timestamp in PQprepare/PQexecPrepared

From: Viktor Pavlenko <vvp(at)cogeco(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trouble with timestamp in PQprepare/PQexecPrepared
Date: 2010-05-31 17:20:21
Message-ID: 19459.61397.95525.287015@hetman.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>>>> "TL" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

TL> Viktor Pavlenko <vvp(at)cogeco(dot)ca> writes:
>> I'm using PG 8.1.11 on linux and having trouble inserting a
>> timestamp value (for starters :)) from a C++ program.

TL> The first argument of to_timestamp is not a timestamp ...

TL> regards, tom lane

Indeed! This is the fix:

#define VARCHAROID 1043
param_types[0] = VARCHAROID;

Thanks a lot for prompt reply.

--
Viktor

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2010-05-31 17:23:39 Debian: upgrading from was: What Linux edition we should chose?
Previous Message Tom Lane 2010-05-31 16:48:41 Re: Trouble with timestamp in PQprepare/PQexecPrepared