Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group