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

Function make_relation

src/gpre/sql.cpp:5517–5535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5515//
5516
5517static gpre_rel* make_relation( gpre_req* request, const TEXT* relation_name)
5518{
5519 if (gpreGlob.isc_databases && !gpreGlob.isc_databases->dbb_next)
5520 {
5521 TEXT r[ERROR_LENGTH];
5522 fb_utils::copy_terminate(r, relation_name, sizeof(r));
5523
5524 gpre_rel* relation = MET_make_relation(r);
5525 relation->rel_database = gpreGlob.isc_databases;
5526 relation->rel_meta = true;
5527
5528 if (request)
5529 request->req_database = gpreGlob.isc_databases;
5530 return relation;
5531 }
5532
5533 PAR_error("Can only reference TABLE in context of single database");
5534 return NULL; // silence compiler warning
5535}
5536
5537
5538//____________________________________________________________

Callers 2

act_declare_tableFunction · 0.85
par_relationFunction · 0.85

Calls 3

MET_make_relationFunction · 0.85
PAR_errorFunction · 0.70
copy_terminateFunction · 0.50

Tested by

no test coverage detected