Permalink
Browse files

fix:building on java 1.6

  • Loading branch information...
davecramer committed Nov 10, 2015
1 parent 38d8488 commit 9133012e1e679c587b81ee43927ec1b688ba8bb8
Showing with 13 additions and 15 deletions.
  1. +13 −15 org/postgresql/test/jdbc2/ArrayTest.java
@@ -420,24 +420,22 @@ public void testEmptyBinaryArray() throws SQLException
// force binary
((org.postgresql.PGStatement)pstmt).setPrepareThreshold(-1);
try (ResultSet rs = pstmt.executeQuery()) {
while (rs.next()) {
Array array = rs.getArray(1);
if (!rs.wasNull())
ResultSet rs = pstmt.executeQuery();
while (rs.next()) {
Array array = rs.getArray(1);
if (!rs.wasNull())
{
ResultSet ars = array.getResultSet();
try
{
ResultSet ars = array.getResultSet();
try
{
ars.getMetaData().getColumnType(1); // this throws NPE
}
catch (NullPointerException ex)
{
assertTrue("should not get here",true);
}
ars.getMetaData().getColumnType(1); // this throws NPE
}
catch (NullPointerException ex)
{
assertTrue("should not get here",true);
}
}
}
}

0 comments on commit 9133012

Please sign in to comment.