X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EAF4A14B2920 for ; Thu, 12 Aug 2004 05:00:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09651-04 for ; Thu, 12 Aug 2004 08:00:34 +0000 (GMT) Received: from angel.lonelyplanet.com.au (mail.lonelyplanet.com.au [202.147.44.168]) by svr1.postgresql.org (Postfix) with ESMTP id C76EC14B2806 for ; Thu, 12 Aug 2004 05:00:28 -0300 (ADT) Received: from shiva.au.lpint.net ([192.168.61.22]) by angel with InterScan Messaging Security Suite; Thu, 12 Aug 2004 17:47:46 +1000 Received: by shiva.au.lpint.net with Internet Mail Service (5.5.2656.59) id ; Thu, 12 Aug 2004 17:58:35 +1000 Message-ID: <82E30406384FFB44AFD1012BAB230B55037D0500@shiva.au.lpint.net> From: Theo Galanakis To: PostgreSQL Subject: Inserting into point[] type. Date: Thu, 12 Aug 2004 17:58:35 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C48042.2B0F33F0" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=EXCUSE_16, HTML_20_30, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200408/107 X-Sequence-Number: 18604 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C48042.2B0F33F0 Content-Type: text/plain How do you insert into a column of type point[] Sample table: CREATE TABLE public.test ( Column_a varchar(1000), Column_b point[] ) WITHOUT OIDS; I have tried without success: insert into test (Column_a, Column_b) values ('Aargau','{47.3899993896,8.03400039673}') Theo ______________________________________________________________________ This email, including attachments, is intended only for the addressee and may be confidential, privileged and subject to copyright. If you have received this email in error, please advise the sender and delete it. If you are not the intended recipient of this email, you must not use, copy or disclose its content to anyone. You must not copy or communicate to others content that is confidential or subject to copyright, unless you have the consent of the content owner. ------_=_NextPart_001_01C48042.2B0F33F0 Content-Type: text/html Inserting into point[] type.

How do you insert into a column of type point[]

Sample table:
CREATE TABLE public.test
(
  Column_a varchar(1000),
  Column_b point[]
) WITHOUT OIDS;


I have tried without success:

insert into test (Column_a, Column_b) values ('Aargau','{47.3899993896,8.03400039673}')

Theo

______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright. If you
have received this email in error, please advise the sender and delete
it. If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone. You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.
------_=_NextPart_001_01C48042.2B0F33F0--