Subject: Array type question???

From: Vivek Shivpuri <[email-masked]>
Date: Sat, 28 Aug 1993 17:19:16 -0400 (EDT)

Below within dotted lines is a monitor session :

_________________________________________________________________________
 
 * create yy(name = int4[4]) \g

 Query sent to backend is "create yy(name = int4[4]) "
 CREATE
 Go 
 * append yy(name = "{1,2,34,5}") \g

 Query sent to backend is "append yy(name = "{1,2,34,5}") "
 APPEND 131243
 Go 
 * append yy(name = "{1,2,3}") \g

 Query sent to backend is "append yy(name = "{1,2,3}") "
 APPEND 131244
 Go 
 * append yy(name = "{1,2}") \g

 Query sent to backend is "append yy(name = "{1,2}") "
 APPEND 131245
 Go 
 * append yy(name = "{1}") \g  ---------------->>>>>>> THIS CAUSES THE PROBLEM

Query sent to backend is "append yy(name = "{1}") " 
APPEND 131246
 Go 
 * retrieve (yy.all) \g

 Query sent to backend is "retrieve (yy.all) "
 ---------------
 | name        |
 ---------------
 | {1,2,34,5}  |
 ---------------
 | {1,2,3}     |
 ---------------
 | {1,2}       |
 ---------------
 | {}          |  -------------->>>>>>>> THIS IS THE PROBLEM
 ---------------

 Go 
 * 

 _________________________________________________________________________

 My question is why does the 4th member of "name" (see problem indication
 above) not work. That is why can't we append only one element. 

 Any solutions around this.....or suggestions would be greatly appreciated.

 Thanks

 Vivek.

-- 
Vivek Shivpuri, CS Dept, 415 GSRC Bldg  | PHONE: [+1] (706)-613-0582 
University Of Georgia, Athens GA30602.  | EMAIL: [email-masked]