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

Method doFetch

src/jrd/extds/InternalDS.cpp:647–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645
646
647bool InternalStatement::doFetch(thread_db* tdbb)
648{
649 FbLocalStatus status;
650
651 bool res = true;
652
653 {
654 EngineCallbackGuard guard(tdbb, *this, FB_FUNCTION);
655
656 fb_assert(m_outMetadata->getMessageLength() == m_out_buffer.getCount());
657 fb_assert(m_cursor);
658 res = m_cursor->fetchNext(&status, m_out_buffer.begin()) == IStatus::RESULT_OK;
659 }
660
661 if (status->getState() & IStatus::STATE_ERRORS)
662 raise(&status, tdbb, "JResultSet::fetchNext");
663
664 return res;
665}
666
667
668void InternalStatement::doClose(thread_db* tdbb, bool drop)

Callers

nothing calls this directly

Calls 6

raiseFunction · 0.85
getMessageLengthMethod · 0.45
getCountMethod · 0.45
fetchNextMethod · 0.45
beginMethod · 0.45
getStateMethod · 0.45

Tested by

no test coverage detected