//pass PreparedStatement here so we can send correct holdability on the wire for jdk1.3 and higher
//For jdk1.3, we provide hold cursor support through reflection.
private void writeSQLDHROW (DRDAStatement stmt) throws DRDAProtocolException,SQLException
{
ResultSet rs = null;
EmbedStatement rsstmt;
if (!stmt.needsToSendParamData)
rs = stmt.getResultSet();
if (rs != null)
rsstmt = (EmbedStatement) rs.getStatement();
else
rsstmt = (EmbedStatement) stmt.getPreparedStatement();
if (JVMInfo.JDK_ID < 2) //write null indicator for SQLDHROW because there is no holdability support prior to jdk1.3
{
writer.writeByte(CodePoint.NULLDATA);
return;
}
writer.writeByte(0); // SQLDHROW INDICATOR
//SQLDHOLD
writer.writeShort(rsstmt.getResultSetHoldability());
//SQLDRETURN
writer.writeShort(0);
//SQLDSCROLL
writer.writeShort(0);