Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6NYq-0005Ku-GX for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jan 2014 16:55:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W6NYp-0007w1-Lh for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Jan 2014 16:55:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6GtJ-0002RB-1c for pgsql-bugs@postgresql.org; Thu, 23 Jan 2014 09:48:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6GtG-0007FJ-Ic for pgsql-bugs@postgresql.org; Thu, 23 Jan 2014 09:48:04 +0000 MIME-Version: 1.0 Subject: BUG #8934: value != ANY (uuid[]) AND expr does not work in all cases To: pgsql-bugs@postgresql.org From: marcusoverheu@gmail.com Date: Thu, 23 Jan 2014 09:47:12 +0000 Message-ID: <20140123094712.26700.15844@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8934 Logged by: Marcus Overheu Email address: marcusoverheu@gmail.com PostgreSQL version: 9.2.4 Operating system: ubuntu 12.04.3 Description: if you have a table ala. create table uuidtest( aint integer, auuid uuid); insert into uuidtest VALUES (1, 'ab15ea27-8768-4cbe-a1fb-02a2a949a34d'), (1, '1c9e9ce5-d4d8-4a14-9eaf-929f27e09ba2'); then select * from uuidtest where auuid = ANY (ARRAY['1c9e9ce5-d4d8-4a14-9eaf-929f27e09ba2','ab15ea27-8768-4cbe-a1fb-02a2a949a34d']::uuid[]) and aint = 1; return 2 result which would mean that if using not in select * from uuidtest where auuid != ANY (ARRAY['1c9e9ce5-d4d8-4a14-9eaf-929f27e09ba2','ab15ea27-8768-4cbe-a1fb-02a2a949a34d']::uuid[]) and aint = 1; would return zero, but it stills returns 2 results. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs