pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gene Selkov Jr. <selkovjr@selkovjr.xnet.com>
To: Brent Wood <brent.wood@blazemail.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] polygon problem
Date: Sat, 11 Dec 1999 19:43:26 -0600
Message-ID: <199912120041.SAA11940@mail.xnet.com> (raw)
In-Reply-To: <3852C2FC.BF4B14A7@blazemail.com>

According to Brent Wood:
> 
>     insert into table1 values ('poly1',((0,0),(0,1),(1,0)),'s');
> This fails with the msg:
> ERROR:   parser: parser error at or near ","
> 
> As I read the docs on polygon types, this should work.

It shouldn't. The SQL parser can't read the VALUES() clause because
you omitted the quotes around the polygon string. It had to be:

     insert into table1 values ('poly1', '((0,0),(0,1),(1,0))', 's');

or

     insert into table1 values ('poly1', '(0,0,0,1,1,0)', 's');


--Gene



view thread (3+ messages)  latest in thread

Message-ID: <199912120041.SAA11940@mail.xnet.com>
Permalink:  ../199912120041.SAA11940@mail.xnet.com/
Also on:    postgresql.org/message-id/199912120041.SAA11940@mail.xnet.com

 · 

reply

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-sql@postgresql.org
  Cc: selkovjr@selkovjr.xnet.com, brent.wood@blazemail.com
  Subject: Re: [SQL] polygon problem
  In-Reply-To: <199912120041.SAA11940@mail.xnet.com>
  References: <3852C2FC.BF4B14A7@blazemail.com> <199912120041.SAA11940@mail.xnet.com>

* 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