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

Method fetchAbsolute

src/jrd/jrd.cpp:5440–5467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5438
5439
5440int JResultSet::fetchAbsolute(CheckStatusWrapper* user_status, int position, void* buffer)
5441{
5442 try
5443 {
5444 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
5445 check_database(tdbb);
5446
5447 try
5448 {
5449 state = cursor->fetchAbsolute(tdbb, static_cast<UCHAR*>(buffer), position);
5450 }
5451 catch (const Exception& ex)
5452 {
5453 transliterateException(tdbb, ex, user_status, "JResultSet::fetchAbsolute");
5454 return IStatus::RESULT_ERROR;
5455 }
5456
5457 trace_warning(tdbb, user_status, "JResultSet::fetchAbsolute");
5458 }
5459 catch (const Exception& ex)
5460 {
5461 ex.stuffException(user_status);
5462 return IStatus::RESULT_ERROR;
5463 }
5464
5465 successful_completion(user_status);
5466 return (state == 0) ? IStatus::RESULT_OK : IStatus::RESULT_NO_DATA;
5467}
5468
5469
5470int JResultSet::fetchRelative(CheckStatusWrapper* user_status, int offset, 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