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

Method prepareCursor

src/jrd/ProfilerManager.cpp:485–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void ProfilerManager::prepareCursor(thread_db* tdbb, Request* request, const Select* select)
486{
487 auto profileStatement = getStatement(request);
488
489 if (!profileStatement)
490 return;
491
492 auto cursorId = select->getCursorId();
493
494 if (!profileStatement->definedCursors.exist(cursorId))
495 {
496 currentSession->pluginSession->defineCursor(profileStatement->id, cursorId,
497 select->getName().nullStr(), select->getLine(), select->getColumn());
498
499 profileStatement->definedCursors.add(cursorId);
500 }
501
502 prepareRecSource(tdbb, request, select);
503}
504
505void ProfilerManager::prepareRecSource(thread_db* tdbb, Request* request, const AccessPath* recordSource)
506{

Callers 1

ProfilerSelectPrepareMethod · 0.80

Calls 9

getStatementFunction · 0.85
getCursorIdMethod · 0.80
getColumnMethod · 0.80
existMethod · 0.45
defineCursorMethod · 0.45
nullStrMethod · 0.45
getNameMethod · 0.45
getLineMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected