| 115 | } |
| 116 | |
| 117 | void JSONRowOutputFormat::finalizeImpl() |
| 118 | { |
| 119 | JSONUtils::writeAdditionalInfo( |
| 120 | row_count, |
| 121 | statistics.rows_before_limit, |
| 122 | statistics.applied_limit, |
| 123 | statistics.rows_before_aggregation, |
| 124 | statistics.applied_aggregation, |
| 125 | statistics.watch, |
| 126 | statistics.progress, |
| 127 | settings.write_statistics && exception_message.empty(), |
| 128 | *ostr); |
| 129 | |
| 130 | if (!exception_message.empty()) |
| 131 | { |
| 132 | writeCString(",\n\n", *ostr); |
| 133 | JSONUtils::writeException(exception_message, *ostr, settings, 1); |
| 134 | } |
| 135 | |
| 136 | JSONUtils::writeObjectEnd(*ostr); |
| 137 | writeChar('\n', *ostr); |
| 138 | ostr->next(); |
| 139 | } |
| 140 | |
| 141 | void JSONRowOutputFormat::resetFormatterImpl() |
| 142 | { |
nothing calls this directly
no test coverage detected