Search Postgresql Archives

Re: Trouble with timestamp in PQprepare/PQexecPrepared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "TL" == Tom Lane <tgl@xxxxxxxxxxxxx> writes:

    TL> Viktor Pavlenko <vvp@xxxxxxxxx> 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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux