| 273 | } |
| 274 | |
| 275 | Status AsciiQueryResultSet::AddOneRow(const TResultRow& row) { |
| 276 | int num_col = row.colVals.size(); |
| 277 | DCHECK_EQ(num_col, metadata_.columns.size()); |
| 278 | stringstream out_stream; |
| 279 | out_stream.precision(ASCII_PRECISION); |
| 280 | for (int i = 0; i < num_col; ++i) { |
| 281 | // ODBC-187 - ODBC can only take "\t" as the delimiter |
| 282 | if (i > 0) out_stream << '\t'; |
| 283 | PrintTColumnValue(out_stream, row.colVals[i]); |
| 284 | } |
| 285 | result_set_->push_back(out_stream.str()); |
| 286 | return Status::OK(); |
| 287 | } |
| 288 | |
| 289 | int AsciiQueryResultSet::AddRows( |
| 290 | const QueryResultSet* other, int start_idx, int num_rows) { |
no test coverage detected