SELECT INTO an array - Mailing list pgsql-novice

From Alberto Bolchini
Subject SELECT INTO an array
Date
Msg-id 1.0.2.200205031702.9711@melloni49.it
Whole thread Raw
Responses Re: SELECT INTO an array  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-novice
Hi!

I'm trying to write a PLPGSQL Function using an array as an internal variable, but I don't seem to succeed:

CREATE FUNCTION ... RETURNS ... AS '
DECLARE
  l_record integer[2];
BEGIN
  SELECT INTO l_record col01, col02 FROM table01 WHERE ...;

when calling the function, I get a

ERROR:  array_in: Need to specify dimension

How do I specify such dimension?


Thanks
Alberto


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re:
Next
From: "Slawek Jarosz"
Date:
Subject: Forte for Java & Postgres