| 209 | } |
| 210 | |
| 211 | void printOrderBy(std::ostream& s, const std::vector<OrderDescription*>* expr, uintmax_t numIndent) |
| 212 | { |
| 213 | if (!expr) { |
| 214 | return; |
| 215 | } |
| 216 | for (const auto& order_description : *expr) { |
| 217 | printExpression(s, order_description->expr, numIndent); |
| 218 | if (order_description->type == kOrderAsc) { |
| 219 | inprint(s, "ascending", numIndent); |
| 220 | } else { |
| 221 | inprint(s, "descending", numIndent); |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | void printSelectStatementInfo(std::ostream& s, const SelectStatement* stmt, uintmax_t numIndent) |
| 227 | { |
no test coverage detected