Skip site navigation (1) Skip section navigation (2)

Possible mistake in new array syntax

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Possible mistake in new array syntax
Date: 2003-06-27 19:52:27
Message-ID: Pine.LNX.4.44.0306271802160.5890-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackers
The documentation says the following is allowed:

INSERT INTO sal_emp
    VALUES ('Bill',
    ARRAY[10000, 10000, 10000, 10000],
    ARRAY[['meeting', 'lunch'], ['','']]);

I cannot find justification for this in the standard.  According to my
reading, it should be

INSERT INTO sal_emp
    VALUES ('Bill',
    ARRAY[10000, 10000, 10000, 10000],
    ARRAY[ARRAY['meeting', 'lunch'], ARRAY['','']]);

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net


Responses

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2003-06-27 19:57:18
Subject: Re: CREATE TABLE AS ... EXECUTE
Previous:From: Peter EisentrautDate: 2003-06-27 19:51:01
Subject: Missing array support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group