Re: Array Problem

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: John Burski <John(dot)Burski(at)911ep(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Array Problem
Date: 2000-11-01 17:07:11
Message-ID: Pine.BSF.4.10.10011010859410.69236-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On Wed, 1 Nov 2000, John Burski wrote:

> I'm working with version 6.5.2 and I've created a test table that
> contains both a one and a two dimensional array.
>
> CREATE TABLE testa (
> name text,
> links int2[],
> vals int2[][] );
>
> I'v populated the table with at least one record, so I should be able
> run 'select' requests that deliver something *meaningful*.
>
> If I select everything or specify an entire array, the query works OK.
>
> SELECT name, links FROM testa; # OK
>
> If I specify a particular array subscipt, for example:
>
> SELECT name, links[1] FROM testa;
>
> I get an error message that says:
>
> ERROR: Unable to locate type name 'vals' in catalog
>
> Yet the documentation seems to indicate that this is a valid *select*
> statement.

Since I don't have 6.5 floating around anymore I can't check it. I do
see that it works on CVS sources and on 7.0. My guess is that it was
a bug fixed between versions. If you can't go up to 7.0, you might
see about trying 6.5.3 just to see if a fix was backpatched.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sion Morris 2000-11-01 17:07:29
Previous Message Stephan Szabo 2000-11-01 16:50:06 Re: Problem with coalesce..

Browse pgsql-novice by date

  From Date Subject
Next Message Norman Clarke 2000-11-01 22:23:42 Re: mysqldump export and pg_dump import
Previous Message John Burski 2000-11-01 16:30:48 Array Problem