Re: Get double values from binary cursor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Get double values from binary cursor
Дата
Msg-id 15776.1134669740@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Get double values from binary cursor  (Oleg Semykin <oss-dev@rambler.ru>)
Список pgsql-interfaces
Oleg Semykin <oss-dev@rambler.ru> writes:
> i want to get a double values from binary cursor

>     PQclear( PQexec(conn, "begin; declare my_cur binary cursor for 
> select 123.123;") );

This is most likely returning a numeric, not a float8.  Try casting
the value to float8 explicitly.
        regards, tom lane


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

Предыдущее
От: Oleg Semykin
Дата:
Сообщение: Get double values from binary cursor
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Obtaining information on the schema of tables which