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

Function lookup_field

src/gpre/exp.cpp:956–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954//
955
956static gpre_nod* lookup_field(gpre_ctx* context)
957{
958 SQL_resolve_identifier("<Field Name>", NULL, NAME_SIZE);
959 gpre_fld* field = MET_field(context->ctx_relation, gpreGlob.token_global.tok_string);
960 if (!field)
961 return NULL;
962
963 ref* reference = (ref*) MSC_alloc(REF_LEN);
964 reference->ref_field = field;
965 reference->ref_context = context;
966
967 return MSC_unary(nod_field, (gpre_nod*) reference);
968}
969
970
971//____________________________________________________________

Callers 1

par_overFunction · 0.85

Calls 4

SQL_resolve_identifierFunction · 0.85
MET_fieldFunction · 0.85
MSC_allocFunction · 0.85
MSC_unaryFunction · 0.85

Tested by

no test coverage detected