MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / par_dynamic_cursor

Function par_dynamic_cursor

src/gpre/sql.cpp:5778–5798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5776//
5777
5778static dyn* par_dynamic_cursor()
5779{
5780 gpre_sym* symbol = NULL;
5781
5782 if (gpreGlob.token_global.tok_symbol == NULL)
5783 {
5784 SQL_resolve_identifier("<cursor name>", NULL, MAX_CURSOR_SIZE);
5785 gpreGlob.token_global.tok_symbol = symbol = HSH_lookup(gpreGlob.token_global.tok_string);
5786 if (symbol && symbol->sym_type == SYM_keyword)
5787 gpreGlob.token_global.tok_keyword = (kwwords_t) symbol->sym_keyword;
5788 else
5789 gpreGlob.token_global.tok_keyword = KW_none;
5790 }
5791 if (symbol = MSC_find_symbol(gpreGlob.token_global.tok_symbol, SYM_dyn_cursor))
5792 {
5793 PAR_get_token();
5794 return (dyn*) symbol->sym_object;
5795 }
5796
5797 return NULL;
5798}
5799
5800
5801//____________________________________________________________

Callers 3

act_fetchFunction · 0.85
act_insert_blobFunction · 0.85
act_opencloseFunction · 0.85

Calls 4

SQL_resolve_identifierFunction · 0.85
HSH_lookupFunction · 0.85
MSC_find_symbolFunction · 0.85
PAR_get_tokenFunction · 0.85

Tested by

no test coverage detected