MCPcopy Create free account
hub / github.com/apache/cloudberry / conditional_stack_get_query_len

Function conditional_stack_get_query_len

src/fe_utils/conditional.c:149–155  ·  view source on GitHub ↗

* Fetch last-recorded query buffer length from topmost stack entry. * Will return -1 if no stack or it was never saved. */

Source from the content-addressed store, hash-verified

147 * Will return -1 if no stack or it was never saved.
148 */
149int
150conditional_stack_get_query_len(ConditionalStack cstack)
151{
152 if (conditional_stack_empty(cstack))
153 return -1;
154 return cstack->head->query_len;
155}
156
157/*
158 * Save current parenthesis nesting depth in topmost stack entry.

Callers 1

discard_query_textFunction · 0.85

Calls 1

conditional_stack_emptyFunction · 0.85

Tested by

no test coverage detected