Oleg Semykin <oss-dev(at)rambler(dot)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