pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Luc Lachance <jllachan@nsd.ca>
To: Donald Fraser <demolish@cwgsy.net>
Cc: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: Extracting single coordinate from a box
Date: Thu, 28 Aug 2003 13:57:29 -0400
Message-ID: <3F4E4289.9310085E@nsd.ca> (raw)
References: <00f001c36d83$11ee0220$1664a8c0@DEMOLITION>
	<28049.1062089706@sss.pgh.pa.us>
	<00fb01c36d87$83880d50$1664a8c0@DEMOLITION>

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" <demolish@cwgsy.net> 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)



view thread (4+ messages)

Message-ID: <3F4E4289.9310085E@nsd.ca>
Permalink:  ../3F4E4289.9310085E@nsd.ca/
Also on:    postgresql.org/message-id/3F4E4289.9310085E@nsd.ca

 · 

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-admin@postgresql.org
  Cc: jllachan@nsd.ca, demolish@cwgsy.net
  Subject: Re: Extracting single coordinate from a box
  In-Reply-To: <3F4E4289.9310085E@nsd.ca>
  References: <00f001c36d83$11ee0220$1664a8c0@DEMOLITION> <28049.1062089706@sss.pgh.pa.us> <00fb01c36d87$83880d50$1664a8c0@DEMOLITION> <3F4E4289.9310085E@nsd.ca>

* 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