pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: afa <afa@vivatech.no>
To: pgsql-sql@postgresql.org
Subject: Assign values to array
Date: Wed, 19 Jun 22:45:25 2002 +0200
Message-ID: <200206192039.g5JKd8q22527@server236a.web2wap.no> (raw)


Hello

I have made this simple test function:

declare
t integer[3];
u integer;
begin
u:=t[1];
t[1]:=4;
return 0;
end;

This is the results when i execute it:

apollo3-stat=# select test();
NOTICE:  plpgsql: ERROR during compile of test near line 6
ERROR:  parse error at or near "["
apollo3-stat=# 

This tells me that the assignment to u is ok.
How can i assign something to the t array?

I'm running versjon 7.2.1

afa

-------------------------------------------------------------------
-->> Add WEB ACCESS to your POP email accounts with
-->> FREE Perl CGI scripts! Download today! http://www.adjeweb.com
-------------------------------------------------------------------



view thread (2+ messages)  latest in thread

Message-ID: <200206192039.g5JKd8q22527@server236a.web2wap.no>
Permalink:  ../200206192039.g5JKd8q22527@server236a.web2wap.no/
Also on:    postgresql.org/message-id/200206192039.g5JKd8q22527@server236a.web2wap.no

 · 

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: afa@vivatech.no
  Subject: Re: Assign values to array
  In-Reply-To: <200206192039.g5JKd8q22527@server236a.web2wap.no>

* 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