? crap Index: org/postgresql/test/jdbc2/ServerPreparedStmtTest.java =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/org/postgresql/test/jdbc2/ServerPreparedStmtTest.java,v retrieving revision 1.3 diff -c -p -r1.3 ServerPreparedStmtTest.java *** org/postgresql/test/jdbc2/ServerPreparedStmtTest.java 29 May 2003 04:39:48 -0000 1.3 --- org/postgresql/test/jdbc2/ServerPreparedStmtTest.java 4 Aug 2003 17:03:15 -0000 *************** public class ServerPreparedStmtTest exte *** 152,156 **** --- 152,168 ---- pstmt.close(); } + + public void testPreparedStatementsMetaData() throws Exception + { + PreparedStatement pstmt = con.prepareStatement("select * from testsps where id = ? or id = ?"); + if (TestUtil.haveMinimumServerVersion(con,"7.4")) + { + java.sql.ResultSetMetaData rsmd = pstmt.getMetaData(); + assertNotNull(rsmd); + assertEquals(rsmd.getColumnName(1), "id"); + } + + } }