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

Re: BUG #3951: SELECT ... WHERE Param = ? does not work if Param is of type bytea

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Vincent D'Haene" <vincent_dhaene(at)hotmail(dot)com>
Cc: Gevik Babakhani <pgdev(at)xs4all(dot)nl>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3951: SELECT ... WHERE Param = ? does not work if Param is of type bytea
Date: 2008-02-21 18:30:02
Message-ID: 13415.1203618602@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Vincent D'Haene" <vincent_dhaene(at)hotmail(dot)com> writes:
> My problem is that it seems that in postgresql you can't use a parameter bound to BYTEA data in the WHERE clause of the SQL statement.

The above claim is nonsense.

> So in my case: "SELECT x FROM T WHERE BinData = ?" does not work (return code -1) if the parameter bound to the ? is of type BYTEA.

I'm guessing that you've got an ODBC problem.  That could be a bug in
your code, or less likely a bug in the ODBC driver you're using.
Since you haven't specified which driver or which version of the driver
you're using, nor provided a test case to run, it's difficult for anyone
else to investigate it.

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Laurent BarbierDate: 2008-02-21 19:06:43
Subject: Re: Initdb error without much more details PostgreSQL 7.4.19
Previous:From: Tom LaneDate: 2008-02-21 16:49:04
Subject: Re: Initdb error without much more details PostgreSQL 7.4.19

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group