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

Method getStreamName

src/jrd/optimizer/Optimizer.cpp:3277–3299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3275//
3276
3277string Optimizer::getStreamName(StreamType stream)
3278{
3279 const auto tail = &csb->csb_rpt[stream];
3280 const auto relation = tail->csb_relation;
3281 const auto procedure = tail->csb_procedure;
3282 const auto alias = tail->csb_alias;
3283
3284 string name;
3285
3286 if (relation)
3287 name = relation->rel_name.c_str();
3288 else if (procedure)
3289 name = procedure->getName().toString();
3290
3291 if (alias && alias->hasData())
3292 {
3293 if (name.hasData())
3294 name += " as ";
3295 name += *alias;
3296 }
3297
3298 return name;
3299}
3300
3301
3302//

Callers 7

printBestOrderMethod · 0.80
printFoundOrderMethod · 0.80
printStartOrderMethod · 0.80
printCandidateMethod · 0.80
printCandidatesMethod · 0.80
printFinalCandidateMethod · 0.80

Calls 4

c_strMethod · 0.45
toStringMethod · 0.45
getNameMethod · 0.45
hasDataMethod · 0.45

Tested by

no test coverage detected