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

Method fetchLast

src/jrd/jrd.cpp:5410–5437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5408
5409
5410int JResultSet::fetchLast(CheckStatusWrapper* user_status, void* buffer)
5411{
5412 try
5413 {
5414 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
5415 check_database(tdbb);
5416
5417 try
5418 {
5419 state = cursor->fetchLast(tdbb, static_cast<UCHAR*>(buffer));
5420 }
5421 catch (const Exception& ex)
5422 {
5423 transliterateException(tdbb, ex, user_status, "JResultSet::fetchLast");
5424 return IStatus::RESULT_ERROR;
5425 }
5426
5427 trace_warning(tdbb, user_status, "JResultSet::fetchLast");
5428 }
5429 catch (const Exception& ex)
5430 {
5431 ex.stuffException(user_status);
5432 return IStatus::RESULT_ERROR;
5433 }
5434
5435 successful_completion(user_status);
5436 return (state == 0) ? IStatus::RESULT_OK : IStatus::RESULT_NO_DATA;
5437}
5438
5439
5440int JResultSet::fetchAbsolute(CheckStatusWrapper* user_status, int position, 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