- if (driver.isSuppressNulls()) {
- // TODO: StringTable
- pw.println("Row limit for suppress_nulls has been reached; output may have been truncated.");
- writeDivider(pw, colWidths, suppressed);
- }
- else {
- while (pending > 0) {
- rowBuf = bufferRows(driver, colWidths);
- writeRowBuffer(pw, rowBuf, colWidths, suppressed);
- pending = rowBuf.getPending();
- rowCount += pending;
+ rowBuf = bufferRows(driver, colWidths);
+ pending = rowBuf.getPending();
+ while (pending > 0) {
+ if (driver.isSet(DbDriver.SUPPRESS_NULLS)) {
+ writeDivider(pw, colWidths, suppressed);
+ pw.println("Row limit for suppress_nulls has been reached; output may have been truncated.");
+ break;