// the sqlcagrp is most likely null for insert/update/deletes. if it is null, then we can
// peek ahead for the column number which most likely will be 0. if it is 0, then we will
// not new up a ColumnMetaData, and we can skip the rest of the bytes in sqldard.
// if sqlcargrp is not null, (most likely for select's) then we will not peek ahead for the
// column number since it will never be 0 in a select case.
ColumnMetaData columnMetaData = null;
NetSqlca netSqlca = null;
boolean nullSqlca = peekForNullSqlcagrp();
if (nullSqlca && peekNumOfColumns() == 0) {
netSqlca = parseSQLDARD(columnMetaData, true); // true means to skip the rest of SQLDARD bytes
} else {
columnMetaData = new ColumnMetaData(netAgent_.logWriter_);
netSqlca = parseSQLDARD(columnMetaData, false); // false means do not skip SQLDARD bytes.
}
statement.completePrepareDescribeOutput(columnMetaData,
netSqlca);