MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _restore_outer_internal_names

Function _restore_outer_internal_names

src/ast/ast_rewrite_call_subquery.c:488–499  ·  view source on GitHub ↗

restores `outer_names` to its original size by freeing the added components

Source from the content-addressed store, hash-verified

486
487// restores `outer_names` to its original size by freeing the added components
488static void _restore_outer_internal_names
489(
490 char ***outer_names, // expanded context
491 int orig_size // original context size
492) {
493 // free added names
494 int n_added_names = array_len(*outer_names) - orig_size;
495 for(int i = 0; i < n_added_names; i++) {
496 char *name = array_pop(*outer_names);
497 rm_free(name);
498 }
499}
500
501// rewrites the subquery to contain the projections needed in case of an
502// eager and returning execution-plan such that bound vars will

Callers 1

Calls 2

array_lenFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected