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

Method fetchRelative

src/jrd/jrd.cpp:5470–5497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5468
5469
5470int JResultSet::fetchRelative(CheckStatusWrapper* user_status, int offset, void* buffer)
5471{
5472 try
5473 {
5474 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
5475 check_database(tdbb);
5476
5477 try
5478 {
5479 state = cursor->fetchRelative(tdbb, static_cast<UCHAR*>(buffer), offset);
5480 }
5481 catch (const Exception& ex)
5482 {
5483 transliterateException(tdbb, ex, user_status, "JResultSet::fetchRelative");
5484 return IStatus::RESULT_ERROR;
5485 }
5486
5487 trace_warning(tdbb, user_status, "JResultSet::fetchRelative");
5488 }
5489 catch (const Exception& ex)
5490 {
5491 ex.stuffException(user_status);
5492 return IStatus::RESULT_ERROR;
5493 }
5494
5495 successful_completion(user_status);
5496 return (state == 0) ? IStatus::RESULT_OK : IStatus::RESULT_NO_DATA;
5497}
5498
5499
5500FB_BOOLEAN JResultSet::isEof(CheckStatusWrapper* user_status)

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