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

Method fetchNext

src/dsql/DsqlCursor.cpp:106–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106int DsqlCursor::fetchNext(thread_db* tdbb, UCHAR* buffer)
107{
108 if (!(m_flags & IStatement::CURSOR_TYPE_SCROLLABLE))
109 {
110 m_eof = !m_dsqlRequest->fetch(tdbb, buffer);
111
112 if (m_eof)
113 {
114 m_state = EOS;
115 return 1;
116 }
117
118 m_state = POSITIONED;
119 return 0;
120 }
121
122 return fetchRelative(tdbb, buffer, 1);
123}
124
125int DsqlCursor::fetchPrior(thread_db* tdbb, UCHAR* buffer)
126{

Callers 1

executeMethod · 0.45

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected