Re: IN clause on BYTEA column works against table directly but gives error against view

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Eric Schwarzenbach" <subscriber(at)blackbrook(dot)org>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: IN clause on BYTEA column works against table directly but gives error against view
Date: 2010-12-27 19:54:53
Message-ID: 4D189AAD0200002500038BD2@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Eric Schwarzenbach <subscriber(at)blackbrook(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2010-12-27 20:35:02 Re: BUG #5781: unaccent() function should be marked IMMUTABLE
Previous Message Eric Schwarzenbach 2010-12-27 19:39:57 IN clause on BYTEA column works against table directly but gives error against view