public void testArray() throws SQLException {
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
stmt.executeUpdate("INSERT INTO updateable (id, intarr) VALUES (1, '{1,2,3}'::int4[])");
ResultSet rs = stmt.executeQuery("SELECT id, intarr FROM updateable");
assertTrue(rs.next());
rs.updateObject(2, rs.getArray(2));
rs.updateRow();
Array arr = rs.getArray(2);
assertEquals(Types.INTEGER, arr.getBaseType());
Integer[] intarr = (Integer[]) arr.getArray();