Re: Get double values from binary cursor
- From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
- To: oss-dev(at)rambler(dot)ru
- Cc: pgsql-interfaces(at)postgresql(dot)org
- Subject: Re: Get double values from binary cursor
- Date: Thu, 15 Dec 2005 13:02:20 -0500
- Message-id: <15776.1134669740@sss.pgh.pa.us> <text/plain>
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
Home |
Main Index |
Thread Index