* Prepare to possibly restore query buffer to its current state * (cf. discard_query_text). * * We need to remember the length of the query buffer, and the lexer's * notion of the parenthesis nesting depth. */
| 2987 | * notion of the parenthesis nesting depth. |
| 2988 | */ |
| 2989 | static void |
| 2990 | save_query_text_state(PsqlScanState scan_state, ConditionalStack cstack, |
| 2991 | PQExpBuffer query_buf) |
| 2992 | { |
| 2993 | if (query_buf) |
| 2994 | conditional_stack_set_query_len(cstack, query_buf->len); |
| 2995 | conditional_stack_set_paren_depth(cstack, |
| 2996 | psql_scan_get_paren_depth(scan_state)); |
| 2997 | } |
| 2998 | |
| 2999 | /* |
| 3000 | * Discard any query text absorbed during an inactive conditional branch. |
no test coverage detected