Re: [BUGS] BUG #5898: Nested "in" clauses hide bad column names

2011-02-22 Thread Eric Schwarzenbach
Using table aliases prevents such problems by disambiguating the column names. For example, if you had table aliases in just one part of this query as in the below, you would have gotten an error instead of deleting all those rows: select respondent_id from respondent where respondent_id in (s

[BUGS] IN clause on BYTEA column works against table directly but gives error against view

2010-12-27 Thread Eric Schwarzenbach
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: operato