Re: problem with array of boxes

From: Andre Radke <lists(at)spicynoodles(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem with array of boxes
Date: 2002-03-17 15:15:29
Message-ID: p05100300b8ba56eb5e10@[192.168.1.5]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

At 18:01h -0500 16.03.2002, Tom Lane wrote:
>I've finished looking into this, and the short answer is that your input
>is not syntactically correct. Because type box has typdelim = ';', the
>correct input would have been
>
>INSERT INTO boxarray_test VALUES ('{"(3,3),(1,1)";"(4,4),(2,2)"}');

Thanks! I changed my code to use a semi-colon instead of a comma as
delimiter and that indeed solved my problem.

>This still leaves us with the question of whether it's really a good
>idea that type box has typdelim ';' and not ',' like everything else
>uses. Anyone have a strong feeling about changing it or not?

I'm relatively new to PostgreSQL, so I don't have a qualified opinion on this.

-Andre

--
Andre Radke + mailto:lists(at)spicynoodles(dot)net + http://www.spicynoodles.net/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-03-17 18:01:34 Re: Maintainer(s) for gborg?
Previous Message Jean-Michel POURE 2002-03-17 09:13:21 Re: [ODBC] ODBC

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-03-17 17:47:39 Re: Client/Server compression?
Previous Message Gavin Sherry 2002-03-17 13:50:07 Another misinformed article