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

Method fetchFirst

src/remote/client/interface.cpp:5287–5303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5285
5286
5287int ResultSet::fetchFirst(CheckStatusWrapper* user_status, void* buffer)
5288{
5289 try
5290 {
5291 if (!(flags & IStatement::CURSOR_TYPE_SCROLLABLE))
5292 (Arg::Gds(isc_invalid_fetch_option) << Arg::Str("FIRST")).raise();
5293
5294 return fetch(user_status, buffer, fetch_first) ?
5295 IStatus::RESULT_OK : IStatus::RESULT_NO_DATA;
5296 }
5297 catch (const Exception& ex)
5298 {
5299 ex.stuffException(user_status);
5300 }
5301
5302 return IStatus::RESULT_ERROR;
5303}
5304
5305
5306int ResultSet::fetchLast(CheckStatusWrapper* user_status, void* buffer)

Callers 1

fetchMethod · 0.45

Calls 4

GdsClass · 0.85
StrClass · 0.85
raiseMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected