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

Method fetchNext

src/jrd/jrd.cpp:5321–5348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5319
5320
5321int JResultSet::fetchNext(CheckStatusWrapper* user_status, void* buffer)
5322{
5323 try
5324 {
5325 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
5326 check_database(tdbb);
5327
5328 try
5329 {
5330 state = cursor->fetchNext(tdbb, static_cast<UCHAR*>(buffer));
5331 }
5332 catch (const Exception& ex)
5333 {
5334 transliterateException(tdbb, ex, user_status, "JResultSet::fetchNext");
5335 return IStatus::RESULT_ERROR;
5336 }
5337
5338 trace_warning(tdbb, user_status, "JResultSet::fetchNext");
5339 }
5340 catch (const Exception& ex)
5341 {
5342 ex.stuffException(user_status);
5343 return IStatus::RESULT_ERROR;
5344 }
5345
5346 successful_completion(user_status);
5347 return (state == 0) ? IStatus::RESULT_OK : IStatus::RESULT_NO_DATA;
5348}
5349
5350int JResultSet::fetchPrior(CheckStatusWrapper* user_status, void* buffer)
5351{

Callers 15

grantRevokeAdminMethod · 0.45
executeMethod · 0.45
populateMethod · 0.45
populateMethod · 0.45
populateMethod · 0.45
getListMethod · 0.45
checkCreateDatabaseGrantFunction · 0.45
getListMethod · 0.45
initMethod · 0.45
SessionMethod · 0.45
executeMethod · 0.45
mainFunction · 0.45

Calls 5

check_databaseFunction · 0.85
transliterateExceptionFunction · 0.85
trace_warningFunction · 0.85
successful_completionFunction · 0.85
stuffExceptionMethod · 0.45

Tested by

no test coverage detected