Array arr = rs.getArray(1);
Integer[] out = (Integer[]) arr.getArray();
assertEquals(3, out.length);
assertEquals(0, out[0].intValue());
assertEquals(-1, out[1].intValue());
<BUG>assertEquals(2, out[2].intValue());
}</BUG>
@Test
public void testCreateArrayOfMultiString() throws SQLException {
PreparedStatement pstmt = conn.prepareStatement("SELECT ?::text[]");

Array arr = rs.getArray(1);
Integer[] out = (Integer[]) arr.getArray();
assertEquals(3, out.length);
assertEquals(0, out[0].intValue());
assertEquals(-1, out[1].intValue());
assertEquals(2, out[2].intValue());
rs.close();
pstmt.close();
}
@Test
public void testCreateArrayOfMultiString() throws SQLException {
PreparedStatement pstmt = conn.prepareStatement("SELECT ?::text[]");
