Return-Path: postarch
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA29287; Mon, 27 Jan 92 10:54:09 -0800
Message-Id: <9201271854.AA29287@postgres.Berkeley.EDU>
From: postarch (Postgres Mailing Archive)
Subject: Re: postgres arrays
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
Reply-To: mer@postgres.berkeley.edu
In-Reply-To: Your message of "Thu, 23 Jan 92 17:18:13 PST."
             <9201240122.AA17471@postgres.Berkeley.EDU> 
Date: Mon, 27 Jan 92 10:53:56 PST

you write:
> I am having trouble accessing array elements.  I am using the following class
> structure
> 
> word (title = char16, document = char16[])
> 
> when I try to append to this class using the following command I get a parse 
 +error near [
> 
> append word (title = "something", document[1] = "something")

When you want to append to an array attribute you have to specify the entire
array (via an array constant).  For your example:

	append word (title="something", document="{something}")

if you want more than one element in the array list them with 
comma separators:

	append word (title="something", document="{borrowed, something, blue}")


Jeff Meredith
mer@postgres.berkeley.edu
