Search Postgresql Archives

Re: binding 64-bit integer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After change the SQL clause to "SELECT * from mytable WHERE mykey=$1::int8", the binding passed!

Thanks for everyone's reply.

----- Original Message ----
From: Tom Lane <tgl@xxxxxxxxxxxxx>
To: "flying2001us@xxxxxxxxx" <flying2001us@xxxxxxxxx>
Cc: pgsql-general@xxxxxxxxxxxxxx
Sent: Thursday, April 19, 2007 8:41:22 PM
Subject: Re: [GENERAL] binding 64-bit integer


"flying2001us@xxxxxxxxx" <flying2001us@xxxxxxxxx> writes:
> I wanted to bind a 64-bit integer, but it failed:
> "ERROR:  incorrect binary data format in bind
> parameter 1".

It sorta looks like you are trying to send that value to a parameter
that the server doesn't think is int8.

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux