case RESULT_METADATA : {
out.writeInt(extendedColumnCount);
for (int i = 0; i < extendedColumnCount; i++) {
if (columnTypes[i] == null) {
ColumnBase column = columns[i];
columnTypes[i] = column.getDataType();
}
writeDataType(out, columnTypes[i]);
}
for (int i = 0; i < columnCount; i++) {
ColumnBase column = columns[i];
out.writeString(columnLabels[i]);
out.writeString(column.getCatalogNameString());
out.writeString(column.getSchemaNameString());
out.writeString(column.getTableNameString());
out.writeString(column.getNameString());
out.writeByte(encodeTableColumnAttrs(column));
}
if (columnCount != extendedColumnCount) {
for (int i = 0; i < colIndexes.length; i++) {