Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bygdM-0007j4-Cu for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Oct 2016 14:53:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bygdL-0005nL-Nv for pgsql-bugs@arkaria.postgresql.org; Mon, 24 Oct 2016 14:53:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bygch-0004s8-95 for pgsql-bugs@postgresql.org; Mon, 24 Oct 2016 14:53:11 +0000 Received: from lb3-smtp-cloud2.xs4all.net ([194.109.24.29]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bygYX-00019m-GQ for pgsql-bugs@postgresql.org; Mon, 24 Oct 2016 14:49:00 +0000 Received: from webmailclassic.xs4all.nl ([194.109.20.211]) by smtp-cloud2.xs4all.net with ESMTP id zSop1t0094ZF39u01SopcE; Mon, 24 Oct 2016 16:48:49 +0200 Received: from gateway-1-18.erasmusmc.nl ([156.83.1.18]) by webmailclassic.xs4all.nl with HTTP (HTTP/1.1 POST); Mon, 24 Oct 2016 16:48:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 24 Oct 2016 16:48:49 +0200 From: Erik Rijkers To: andreas.imboden@bl.ch Cc: pgsql-bugs@postgresql.org, pgsql-bugs-owner@postgresql.org Subject: Re: BUG #14394: No error raised in IN-clause when commas are missing In-Reply-To: <20161024142841.1423.19672@wrigleys.postgresql.org> References: <20161024142841.1423.19672@wrigleys.postgresql.org> Message-ID: <757c799204a29dbd3dafc33e0bbffe5a@xs4all.nl> X-Sender: er@xs4all.nl (f9FgAneZlp6jlgpkKAyjrw==) User-Agent: XS4ALL Webmail X-Pg-Spam-Score: -2.6 (--) 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 On 2016-10-24 16:28, andreas.imboden@bl.ch wrote: > The following bug has been logged on the website: > > Bug reference: 14394 > -- not correct, result = 3 > -- no comma after 'two', no error message, incorrect result > select sum(cvalue) from abug > where cname in ( > 'one', > 'two' > 'three', > 'four', > 'five'); > This is actually the correct result because 'two' 'three' will be concatenated to 'twothree', which is isn't present (leaving 'one', 'four', and 'five' as the 3 that SUM counted). See also: select 'two' 'three' ; ?column? ---------- twothree (1 row) which is, I believe, as described in the SQL standard. Erik Rijkers -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs