Hello all,
ResultSet#getMetaData() is returning null, using the current CVS driver,
if called before ResultSet#next()
<snippet>
db.setAutoCommit(false);
CallableStatement st = db.prepareCall( "{ ? = call doit () }" );
st.registerOutParameter(1, Types.OTHER);
st.execute();
ResultSet rs = (ResultSet) st.getObject(1);
ResultSetMetaData md = rs.getMetaData();
System.out.println( "Column count = " + md.getColumnCount() );
//Exception in thread "main" java.lang.NullPointerException
//at org.postgresql.jdbc2.AbstractJdbc2ResultSetMetaData.getColumnCount(AbstractJdbc2ResultSetMetaData.java:33)
//at JDBCTest.main(JDBCTest.java:16)
rs.next();
</snippet>
Regards,
Doug