Re: Trouble with timestamp in PQprepare/PQexecPrepared

Поиск
Список
Период
Сортировка
От Viktor Pavlenko
Тема Re: Trouble with timestamp in PQprepare/PQexecPrepared
Дата
Msg-id 19459.61397.95525.287015@hetman.ua
обсуждение исходный текст
Ответ на Re: Trouble with timestamp in PQprepare/PQexecPrepared  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
>>>>> "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


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Trouble with timestamp in PQprepare/PQexecPrepared
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Debian: upgrading from was: What Linux edition we should chose?