| 5408 | |
| 5409 | |
| 5410 | int 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 | |
| 5440 | int JResultSet::fetchAbsolute(CheckStatusWrapper* user_status, int position, void* buffer) |
nothing calls this directly
no test coverage detected