updating Arrays - Mailing list pgsql-jdbc

From Guido Fiala
Subject updating Arrays
Date
Msg-id 200408120849.21875.guido.fiala@dka-gmbh.de
Whole thread Raw
List pgsql-jdbc
Hallo,

while using the datatype array with getObject() one can easily work with
getArray() and has the data available.

But i have some problems to understand how the opposite way works,
the method updateObject() does take an array too or using updateArray()
in the following cases:

-getArray() returns null, but the user wants to inserts some values
-getArray() returns an array with say, 4 elements, the user wants to insert
one with more or less than 4 dimensions
-getArray() returns an array and the user just wants to changes some values in

How can i achieve this? (for various datatypes)
Do i really need an prepared Statement? (so far i don't need that in my app)

Thanks for any help,
Guido


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: [GENERAL] Resultset problem or BUG !
Next
From: Kris Jurka
Date:
Subject: Re: [Pgjdbc-commit] By davec: Added escape sequences for function