Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgJeo-0007Y6-S0 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 May 2014 20:02:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WgJeo-0000Gk-8B for pgsql-bugs@arkaria.postgresql.org; Fri, 02 May 2014 20:02:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgJen-0000Gc-MB for pgsql-bugs@postgresql.org; Fri, 02 May 2014 20:02:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgJek-0005cM-Tf for pgsql-bugs@postgresql.org; Fri, 02 May 2014 20:02:05 +0000 MIME-Version: 1.0 Subject: BUG #10201: Invalid input accepted with IN expression To: pgsql-bugs@postgresql.org From: dbaston@gmail.com Date: Fri, 02 May 2014 20:01:27 +0000 Message-ID: <20140502200127.1403.20569@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: 10201 Logged by: Daniel Baston Email address: dbaston@gmail.com PostgreSQL version: 9.2.2 Operating system: Windows Server 2012 Description: If two items in an IN expression are separated by a newline instead of a comma, those items will be ignored with no error. CREATE TABLE testing (id varchar(1)); INSERT INTO testing VALUES ('1'), ('2'), ('3'), ('4'), ('5'); -- Missing comma produces a syntax error SELECT * FROM testing WHERE id IN ('1' '2', '3'); -- Unless there is a newline SELECT * FROM testing WHERE id IN ('1' '2', '3'); id ---- 3 (1 row) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs