Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 252DB476D54 for ; Wed, 19 Jun 2002 16:50:07 -0400 (EDT) Received: from server236a.web2wap.no (unknown [213.236.129.46]) by postgresql.org (Postfix) with ESMTP id CCE9C475985 for ; Wed, 19 Jun 2002 16:45:34 -0400 (EDT) Received: from ansatte.web2wap.no (andromeda [213.236.129.45]) by server236a.web2wap.no (8.11.0/8.11.0) with SMTP id g5JKd8q22527; Wed, 19 Jun 2002 22:39:08 +0200 Message-Id: <200206192039.g5JKd8q22527@server236a.web2wap.no> Date: Wed, 19 Jun 22:45:25 2002 +0200 From: "afa" To: pgsql-sql@postgresql.org Subject: Assign values to array X-Archive-Number: 200206/257 X-Sequence-Number: 8222 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 -------------------------------------------------------------------