pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David <de4@kent.ac.uk>
To: pgsql-sql@postgresql.org
Subject: arrays and polygons
Date: Fri, 13 Feb 2004 10:25:10 -0000
Message-ID: <001e01c3f21b$a8c0eb00$2d650c81@ad.kent.ac.uk> (raw)

Hi there i am having problems inserting an array of polygons into a table, i
have added the column using:

ALTER TABLE species ADD COLUMN location polygon[];

this works fine, but when i try

INSERT INTO species (location) VALUES ('{((432,89), (45,87), (89,87)),
((54,78), (34,98))};

I get the following error message:

ERROR: Bad polygon external representation '((432'

Where am i going wrong, all help is much appreciated DAvid




view thread (4+ messages)  latest in thread

Message-ID: <001e01c3f21b$a8c0eb00$2d650c81@ad.kent.ac.uk>
Permalink:  ../001e01c3f21b$a8c0eb00$2d650c81@ad.kent.ac.uk/
Also on:    postgresql.org/message-id/001e01c3f21b$a8c0eb00$2d650c81@ad.kent.ac.uk

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: de4@kent.ac.uk
  Subject: Re: arrays and polygons
  In-Reply-To: <001e01c3f21b$a8c0eb00$2d650c81@ad.kent.ac.uk>

* 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