From: stormbyte@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13655: Incorrect Syntax Error
Date: Wed, 30 Sep 2015 19:25:26 +0000
Message-ID: <20150930192526.359.78719@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13655
Logged by: David
Email address: stormbyte@gmail.com
PostgreSQL version: 9.4.4
Operating system: Gentoo Linux
Description:
When using field names with "", and custom data type, with its name also
with "", a syntax error is triggered in CREATE TABLE when tab character is
used instead of spaces.
To reproduce, create a sql file with: (Insert tab and NOT space when <TAB>
is specified)
CREATE TYPE "GPSPoint" AS ("lat" DECIMAL(9,6), "lon" DECIMAL(9,6));
CREATE TABLE "TestTable" ("testGPS"<TAB>"GPSPoint" NOT NULL);
Save it, and copy/paste to psql, you will see an syntax error near NOT.
That is workarounded by inserting <SPACE> before or instead of <TAB>, but
should not trigger any syntax error, as the same syntax works for bundled
types, so the following does not fail:
CREATE TABLE "TestTable" ("test"<TAB>SMALLINT NOT NULL);
This is a low priority bug, but a bit annoying
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: stormbyte@gmail.com
Subject: Re: BUG #13655: Incorrect Syntax Error
In-Reply-To: <20150930192526.359.78719@wrigleys.postgresql.org>
References: <20150930192526.359.78719@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox