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

Method fetchFirst

src/jrd/jrd.cpp:5380–5407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5378
5379
5380int JResultSet::fetchFirst(CheckStatusWrapper* user_status, void* buffer)
5381{
5382 try
5383 {
5384 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
5385 check_database(tdbb);
5386
5387 try
5388 {
5389 state = cursor->fetchFirst(tdbb, static_cast<UCHAR*>(buffer));
5390 }
5391 catch (const Exception& ex)
5392 {
5393 transliterateException(tdbb, ex, user_status, "JResultSet::fetchFirst");
5394 return IStatus::RESULT_ERROR;
5395 }
5396
5397 trace_warning(tdbb, user_status, "JResultSet::fetchFirst");
5398 }
5399 catch (const Exception& ex)
5400 {
5401 ex.stuffException(user_status);
5402 return IStatus::RESULT_ERROR;
5403 }
5404
5405 successful_completion(user_status);
5406 return (state == 0) ? IStatus::RESULT_OK : IStatus::RESULT_NO_DATA;
5407}
5408
5409
5410int JResultSet::fetchLast(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