[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: [GENERAL] Trouble with timestamp in PQprepare/PQexecPrepared
From:       Viktor Pavlenko <vvp () cogeco ! ca>
Date:       2010-05-31 17:20:21
Message-ID: 19459.61397.95525.287015 () hetman ! ua
[Download RAW message or body]

>>>>> "TL" == Tom Lane <tgl@sss.pgh.pa.us> writes:

    TL> Viktor Pavlenko <vvp@cogeco.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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic