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

Method fetchPrior

src/jrd/jrd.cpp:5350–5377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5348}
5349
5350int JResultSet::fetchPrior(CheckStatusWrapper* user_status, void* buffer)
5351{
5352 try
5353 {
5354 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
5355 check_database(tdbb);
5356
5357 try
5358 {
5359 state = cursor->fetchPrior(tdbb, static_cast<UCHAR*>(buffer));
5360 }
5361 catch (const Exception& ex)
5362 {
5363 transliterateException(tdbb, ex, user_status, "JResultSet::fetchPrior");
5364 return IStatus::RESULT_ERROR;
5365 }
5366
5367 trace_warning(tdbb, user_status, "JResultSet::fetchPrior");
5368 }
5369 catch (const Exception& ex)
5370 {
5371 ex.stuffException(user_status);
5372 return IStatus::RESULT_ERROR;
5373 }
5374
5375 successful_completion(user_status);
5376 return (state == 0) ? IStatus::RESULT_OK : IStatus::RESULT_NO_DATA;
5377}
5378
5379
5380int JResultSet::fetchFirst(CheckStatusWrapper* user_status, void* buffer)

Callers

nothing calls this directly

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