Re: operator does not exist: text = bytea

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karthik K L V <venkata(dot)karthik4u(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: operator does not exist: text = bytea
Date: 2022-07-20 13:59:12
Message-ID: 1695443.1658325552@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karthik K L V <venkata(dot)karthik4u(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marc Millas 2022-07-20 14:07:01 Re: postgis
Previous Message Ron 2022-07-20 13:51:55 Re: postgis