Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL) - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Date
Msg-id 515C5CB8.3030707@dunslane.net
Whole thread Raw
In response to Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
List pgsql-hackers
On 04/03/2013 11:34 AM, Gavin Flower wrote:
>
> Zero as the default lower bound is consistent with most languages 
> (especially the common ones like C, C++, Java, & Python), in fact I 
> don't remember any language where that is not the case (ignoring SQL) 
> - and I've written programs in about 20 languages.

Pascal and Ada are obvious examples.

I'm quite sure there are others, but don't have time to do the research.

cheers

andrew




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [sepgsql 2/3] Add db_schema:search permission checks
Next
From: Jeff Janes
Date:
Subject: Re: regression test failed when enabling checksum