Parse ORDER BY expression into buf. Returns buf. */
| 1718 | |
| 1719 | /* Parse ORDER BY expression into buf. Returns buf. */ |
| 1720 | static char *parse_order_by_expr(parser_t *p, char *buf, size_t buf_sz) { |
| 1721 | buf[0] = '\0'; |
| 1722 | if (is_aggregate_tok(peek(p)->type)) { |
| 1723 | parse_order_by_agg(p, buf, buf_sz); |
| 1724 | } else { |
| 1725 | parse_order_by_var(p, buf, buf_sz); |
| 1726 | } |
| 1727 | return buf; |
| 1728 | } |
| 1729 | |
| 1730 | /* Parse the full comma-separated ORDER BY key list (#1334). Consuming only the |
| 1731 | * first key left ", key2 ... LIMIT n" unparsed, which silently dropped the |
no test coverage detected