From: Tom Lane <tgl@sss.pgh.pa.us>
To: Karthik K L V <venkata.karthik4u@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: operator does not exist: text = bytea
Date: Wed, 20 Jul 2022 09:59:12 -0400
Message-ID: <1695443.1658325552@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGpQzhyp+Jfvz1BveXupEzw48gofzwy=xHW143z50ouJHu-4jw@mail.gmail.com>
References: <CAGpQzhyp+Jfvz1BveXupEzw48gofzwy=xHW143z50ouJHu-4jw@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, venkata.karthik4u@gmail.com
Subject: Re: operator does not exist: text = bytea
In-Reply-To: <1695443.1658325552@sss.pgh.pa.us>
References: <CAGpQzhyp+Jfvz1BveXupEzw48gofzwy=xHW143z50ouJHu-4jw@mail.gmail.com> <1695443.1658325552@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox