arr = rs.getArray(1);
Integer[][] i = (Integer[][]) arr.getArray();
assertEquals(1, i[0][0].intValue());
assertEquals(2, i[0][1].intValue());
assertEquals(3, i[1][0].intValue());
<BUG>assertEquals(4, i[1][1].intValue());
}</BUG>
@Test
public void testCreateArrayOfInt() throws SQLException {
PreparedStatement pstmt = conn.prepareStatement("SELECT ?::int[]");

arr = rs.getArray(1);
Integer[][] i = (Integer[][]) arr.getArray();
assertEquals(1, i[0][0].intValue());
assertEquals(2, i[0][1].intValue());
assertEquals(3, i[1][0].intValue());
assertEquals(4, i[1][1].intValue());
rs.close();
pstmt.close();
}
@Test
public void testCreateArrayOfInt() throws SQLException {
PreparedStatement pstmt = conn.prepareStatement("SELECT ?::int[]");
