Re: operator does not exist: text = bytea - Mailing list pgsql-general

From Tom Lane
Subject Re: operator does not exist: text = bytea
Date
Msg-id 1695443.1658325552@sss.pgh.pa.us
Whole thread Raw
In response to operator does not exist: text = bytea  (Karthik K L V <venkata.karthik4u@gmail.com>)
List pgsql-general
Karthik K L V <venkata.karthik4u@gmail.com> writes:
> We have a query with bind value which sometimes gets resolved to null (no
> data) depending on the application scenario.
> The datatype of the bindvalue and the corresponding column is String.
> The same query executes fine when the value of the bindvalue is populated.
> Could you please let me know how I can resolve this issue without making
> changes to the query?

This seems like it depends on the details of how the JDBC driver sends
the bound parameter to the server, so you'd be better off asking in
the pgsql-jdbc mailing list (and supplying some code details).

It's entirely possible that there isn't any solution other than fixing
your app to be more consistent about how it binds the parameter.

            regards, tom lane



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: postgis
Next
From: Marc Millas
Date:
Subject: Re: postgis