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

Method fetch

src/jrd/ExtEngineManager.cpp:857–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855
856
857bool ExtEngineManager::ResultSet::fetch(thread_db* tdbb)
858{
859 bool wasFirstFetch = firstFetch;
860 firstFetch = false;
861
862 if (!resultSet)
863 return wasFirstFetch;
864
865 const MetaString& userName = procedure->prc->invoker ? procedure->prc->invoker->getUserName() : "";
866 ContextManager<IExternalProcedure> ctxManager(tdbb, attInfo, charSet,
867 (procedure->prc->getName().package.isEmpty() ?
868 CallerName(obj_procedure, procedure->prc->getName().identifier, userName) :
869 CallerName(obj_package_header, procedure->prc->getName().package, userName)));
870
871 EngineCheckout cout(tdbb, FB_FUNCTION, checkoutType(attInfo->engine));
872
873 FbLocalStatus status;
874 bool ret = resultSet->fetch(&status);
875 status.check();
876
877 return ret;
878}
879
880
881//---------------------

Callers 1

executeMethod · 0.45

Calls 6

CallerNameClass · 0.85
checkoutTypeFunction · 0.85
getUserNameMethod · 0.45
isEmptyMethod · 0.45
getNameMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected