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

Function make_index

src/gpre/sql.cpp:5492–5509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5490//
5491
5492static gpre_index* make_index( gpre_req* request, const TEXT* string)
5493{
5494 if (gpreGlob.isc_databases && !gpreGlob.isc_databases->dbb_next)
5495 {
5496 // CVC: I've kept this silly code. What's the idea of the copy here?
5497 // If we are trying to limit the index name, the correct length is NAME_SIZE.
5498 TEXT s[ERROR_LENGTH];
5499 fb_utils::copy_terminate(s, string, sizeof(s));
5500 gpre_index* index = MET_make_index(s);
5501 if (request)
5502 request->req_database = gpreGlob.isc_databases;
5503 //index->ind_flags |= IND_meta; // nobody uses this info
5504 return index;
5505 }
5506
5507 PAR_error("Can only reference INDEX in context of single database");
5508 return NULL; // silence compiler warning
5509}
5510
5511
5512//____________________________________________________________

Callers 3

act_alter_indexFunction · 0.85
act_create_indexFunction · 0.85
act_dropFunction · 0.85

Calls 3

MET_make_indexFunction · 0.85
PAR_errorFunction · 0.70
copy_terminateFunction · 0.50

Tested by

no test coverage detected