Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEFCA-0005Rc-VM for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2013 09:04:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VEFCA-0003JK-En for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Aug 2013 09:04:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEFC9-0003JD-H7 for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 09:04:13 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEFC6-0006by-Qt for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 09:04:13 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEFC5-0005tm-3a for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 09:04:09 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VEFBz-0000Lh-QK for pgsql-bugs@postgresql.org; Tue, 27 Aug 2013 09:04:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8401: weird input accepted for intervals and geometric types To: pgsql-bugs@postgresql.org From: borz_off@cs.msu.su Message-Id: Date: Tue, 27 Aug 2013 09:04:03 +0000 X-Pg-Spam-Score: -4.4 (----) 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: 8401 Logged by: Alexey Borzov Email address: borz_off@cs.msu.su PostgreSQL version: 9.3rc1 Operating system: irrelevant Description: For interval, multiple units: postgres=# select '1 year day second'::interval; interval ---------- 1 year (1 row) Geometric, missing comma: postgres=# select '(1,2)(3,4)'::box, '1,2 3,4'::box; box | box -------------+------------- (3,4),(1,2) | (3,4),(1,2) (1 row) Geometric, one trailing comma: postgres=# select '(1,2)(3,4),'::box; box ------------- (3,4),(1,2) (1 row) Geometric, more trailing commas: postgres=# select '(1,2)(3,4)(5,6),,'::path; path --------------------- ((1,2),(3,4),(5,6)) (1 row) Geometric, unbalanced delimiters: postgres=# select '(1,2),3)'::circle; circle ----------- <(1,2),3> (1 row) Geometric, mismatched delimiters: postgres=# select '((1,2),3>'::circle; circle ----------- <(1,2),3> (1 row) Confirmed on 9.0.13 and 9.3rc1, dates waaaaaay back. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs