Skip site navigation (1) Skip section navigation (2)

two dimensional arrays supported?

From: Guido Fiala <guido(dot)fiala(at)dka-gmbh(dot)de>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: two dimensional arrays supported?
Date: 2004-03-10 12:48:06
Message-ID: (view raw or whole thread)
Lists: pgsql-jdbc

i just tested to access a 2-dimensional array of varchar via jdbc and the 
driver gives the exception "not implemented" - did i something wrong, or is 
it not yet supported?

Any alternative available?

My table is defined as following:

CREATE TABLE tst_2dimarray
   twodim varchar[][]  NULL,
   onedim varchar[]  NULL

my code snippet:

Array a=rs.getArray("twodim");
String aa[][]=(String[][])a.getArray();//this line throws exception below

org.postgresql.util.PSQLException: Diese Methode ist noch nicht implementiert. 
	at org.postgresql.Driver.notImplemented(
	at org.postgresql.jdbc2.Array.getArray(
	at org.postgresql.jdbc2.Array.getArray(
	at twodimarray.main(

localized message means "not yet implemented"...
Above code works fine with "onedim".



pgsql-jdbc by date

Next:From: Bjørn T JohansenDate: 2004-03-10 12:59:14
Subject: Backup of users and groups?
Previous:From: Kubilay Osman ErdemDate: 2004-03-10 11:21:53

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group