Index: org/postgresql/test/jdbc3/TypesTest.java =================================================================== RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/test/jdbc3/TypesTest.java,v retrieving revision 1.9 diff -c -r1.9 TypesTest.java *** org/postgresql/test/jdbc3/TypesTest.java 15 May 2006 09:35:57 -0000 1.9 --- org/postgresql/test/jdbc3/TypesTest.java 21 Jun 2007 12:17:10 -0000 *************** *** 64,69 **** --- 64,83 ---- } } + public void testPreparedByte() throws SQLException { + PreparedStatement pstmt = _conn.prepareStatement("SELECT ?,?"); + pstmt.setByte(1, (byte)1); + pstmt.setObject(2, Byte.valueOf((byte)2)); + ResultSet rs = pstmt.executeQuery(); + assertTrue(rs.next()); + assertEquals((byte)1, rs.getByte(1)); + assertFalse(rs.wasNull()); + assertEquals((byte)2, rs.getByte(2)); + assertFalse(rs.wasNull()); + rs.close(); + pstmt.close(); + } + public void testCallableBoolean() throws SQLException { CallableStatement cs = _conn.prepareCall("{? = call return_bool(?)}"); cs.registerOutParameter(1, Types.BOOLEAN);