Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TItdd-0003iR-Gc for pgsql-bugs@postgresql.org; Tue, 02 Oct 2012 03:59:17 +0000 Received: from smtprelay0116.b.hostedemail.com ([64.98.42.116] helo=smtprelay.b.hostedemail.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TItdZ-0000yR-Ps for pgsql-bugs@postgresql.org; Tue, 02 Oct 2012 03:59:16 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay02.b.hostedemail.com (Postfix) with SMTP id 23573218856; Tue, 2 Oct 2012 03:59:13 +0000 (UTC) X-Panda: scanned! X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::, RULES_HIT:152:355:379:599:601:800:967:973:982:988:989:1260:1277:1311:1313:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2525:2553:2560:2563:2682:2685:2857:2859:2899:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3869:3870:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4605:4659:4774:5007:6119:6261:7514:7679:9025:9121:9165:10004:10400:10848:10967:11256:11257:11658:11914:12324:12517:12519:12740, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Filterd-Recvd-Size: 1601 Received: from perhan.alvh.no-ip.org (unknown [190.95.25.25]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf13.b.hostedemail.com (Postfix) with ESMTPA; Tue, 2 Oct 2012 03:59:12 +0000 (UTC) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C68666E059; Tue, 2 Oct 2012 00:59:10 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: BUG #7574: CASE in WHERE condition change result set From: Alvaro Herrera To: urvancevav In-reply-to: References: Date: Tue, 02 Oct 2012 00:59:10 -0300 Message-Id: <1349150280-sup-467@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/10 X-Sequence-Number: 34310 Excerpts from urvancevav's message of vie sep 28 05:58:42 -0300 2012: > The following bug has been logged on the website: >=20 > Bug reference: 7574 > Logged by: Andrei > Email address: urvancevav@gmail.com > PostgreSQL version: 9.2.1 > Operating system: 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 > Description: =20 >=20 > in query like this: > [ snipped ] > CASE operator in the WHERE condition actually sets clazz_ to 0 instead = of > filtering it. Can you please provide a complete example? That would be something that someone else can load into an empty database and observe the failure. --=20 =C3=81lvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services