pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: pgsql-sql@postgresql.org
Subject: array_lower /array_prepend doubt
Date: Wed, 21 Jan 2004 19:30:12 +0530
Message-ID: <400E85EC.4000106@trade-india.com> (raw)



Greetings!

can anyone explain why
 SELECT array_lower(array_prepend(0, ARRAY[1,2,3]), 1);
returns 0 not 1

because

tradein_clients=# SELECT array_prepend(0, ARRAY[1,2,3]);
+---------------+
| array_prepend |
+---------------+
| {0,1,2,3}     |
+---------------+
(1 row)



and

tradein_clients=# SELECT array_lower( ARRAY[0,1,2,3],1 );
+-------------+
| array_lower |
+-------------+
|           1 |
+-------------+
(1 row)

Time: 402.614 ms


Regds
Mallah.




view thread (12+ messages)  latest in thread

Message-ID: <400E85EC.4000106@trade-india.com>
Permalink:  ../400E85EC.4000106@trade-india.com/
Also on:    postgresql.org/message-id/400E85EC.4000106@trade-india.com

 · 

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: mallah@trade-india.com
  Subject: Re: array_lower /array_prepend doubt
  In-Reply-To: <400E85EC.4000106@trade-india.com>

* 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