Index: org/postgresql/test/jdbc2/ResultSetTest.java =================================================================== RCS file: /cvsroot/jdbc/pgjdbc/org/postgresql/test/jdbc2/ResultSetTest.java,v retrieving revision 1.31 diff -u -r1.31 ResultSetTest.java --- org/postgresql/test/jdbc2/ResultSetTest.java 2 Aug 2011 13:50:29 -0000 1.31 +++ org/postgresql/test/jdbc2/ResultSetTest.java 25 Sep 2011 11:28:49 -0000 @@ -171,7 +171,8 @@ //it should apply only to binary and char/varchar columns rs.next(); assertEquals("12345", rs.getString(1)); - assertEquals("12345", new String(rs.getBytes(1))); + // getBytes returns 5 bytes for txt transfer, 4 for bin transfer + assertTrue(rs.getBytes(1).length >= 4); //max should apply to the following since the column is //a varchar column