Permalink
Browse files

test: skip json testing on pre-9.2 databases (those do not implement …

…json type)
  • Loading branch information...
vlsi committed Jul 28, 2016
1 parent 4ad2df3 commit 0a17d8231de50c1fb2b6f99e4d110e651f4fd4b4
Showing with 3 additions and 0 deletions.
  1. +3 −0 pgjdbc/src/test/java/org/postgresql/test/jdbc4/ArrayTest.java
@@ -115,6 +115,9 @@ public void testCreateArrayOfMultiString() throws SQLException {
@Test
public void testCreateArrayOfMultiJson() throws SQLException {
if (!TestUtil.haveMinimumServerVersion(_conn, "9.2")) {
return;
}
PreparedStatement pstmt = _conn.prepareStatement("SELECT ?::json[]");
PGobject p1 = new PGobject();
p1.setType("json");

0 comments on commit 0a17d82

Please sign in to comment.