| 5378 | |
| 5379 | |
| 5380 | int 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 | |
| 5410 | int JResultSet::fetchLast(CheckStatusWrapper* user_status, void* buffer) |
nothing calls this directly
no test coverage detected