From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Eric Schwarzenbach <subscriber@blackbrook.org>
To: pgsql-bugs@postgresql.org
Subject: Re: IN clause on BYTEA column works against table directly but gives error against view
Date: Mon, 27 Dec 2010 13:54:53 -0600
Message-ID: <4D189AAD0200002500038BD2@gw.wicourts.gov> (raw)
In-Reply-To: <4D18EB8D.8040407@blackbrook.org>
References: <4D18EB8D.8040407@blackbrook.org>
Eric Schwarzenbach <subscriber@blackbrook.org> wrote:
> I've got a SELECT with a WHERE clause using IN against a BYTEA
> column which works when I'm querying against the table directly.
> However when I substitute an equivalent view in my query (a view
> made of several inner joins which simply carry over that same
> BYTEA column), I get the error:
>
> operator does not exist: "integer = bytea"
> My query is occurring via JDBC, using a prepared statement
Please submit a small, self-contained class which creates any needed
tables and views and then runs a query generates the error. The
smaller and simpler, the better.
-Kevin
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-bugs@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, subscriber@blackbrook.org
Subject: Re: IN clause on BYTEA column works against table directly but gives error against view
In-Reply-To: <4D189AAD0200002500038BD2@gw.wicourts.gov>
References: <4D18EB8D.8040407@blackbrook.org> <4D189AAD0200002500038BD2@gw.wicourts.gov>
* 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