X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 37861D1B8AC for ; Thu, 28 Aug 2003 17:56:00 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 60654-04 for ; Thu, 28 Aug 2003 14:55:30 -0300 (ADT) Received: from beamish.nsd.ca (beamish.nsd.ca [205.150.156.194]) by svr1.postgresql.org (Postfix) with ESMTP id 995ADD1B8CF for ; Thu, 28 Aug 2003 14:55:28 -0300 (ADT) Received: (from smap@localhost) by beamish.nsd.ca (8.9.3/8.9.3) id NAA18079; Thu, 28 Aug 2003 13:55:27 -0400 X-Authentication-Warning: beamish.nsd.ca: smap set sender to using -f Received: from reddog.nsd.ca(192.168.101.30) by beamish.nsd.ca via smap (V2.1/2.1+anti-relay+anti-spam) id xma018077; Thu, 28 Aug 03 13:54:57 -0400 Received: from nsd.ca (jllachan-linux.nsd.ca [192.168.101.148]) by reddog.nsd.ca (8.8.7/8.8.7) with ESMTP id NAA18821; Thu, 28 Aug 2003 13:43:02 -0400 Message-ID: <3F4E4289.9310085E@nsd.ca> Date: Thu, 28 Aug 2003 13:57:29 -0400 From: Jean-Luc Lachance X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.18-24.7.x i686) X-Accept-Language: en MIME-Version: 1.0 To: Donald Fraser Cc: "[ADMIN]" Subject: Re: Extracting single coordinate from a box References: <00f001c36d83$11ee0220$1664a8c0@DEMOLITION> <28049.1062089706@sss.pgh.pa.us> <00fb01c36d87$83880d50$1664a8c0@DEMOLITION> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/342 X-Sequence-Number: 10062 I think you are forgetting that a box is an array of one dimension with two points. So, the first point is B[0] and the second is B[1]. Donald Fraser wrote: > > Thanks for the quick response. > > ----- Original Message ----- > > "Donald Fraser" writes: > > > But when I try something like b[0][0] the passer ignores the second array > > > subscript parameter and returns only a "point". > > > You need the extra parentheses because the two subscript operations need > > to work on fundamentally different datatypes --- if you write f1[1][0] > > you are asking to subscript a 2-D array which this isn't. > > > > [ experiments further ... ] Drat, seems that syntax works in 7.4 but > > not 7.3. Dunno if that will help you. > > I'm using 7.3.4 at the moment and I tried the scenario of using parentheses, > which didn't work. > I wrote a function in the end to extract it, but it would have been more > elegant without it :-( > > Thanks again > Donald > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)