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

Method getCursorAdjustment

src/remote/remote.h:782–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780 }
781
782 SLONG getCursorAdjustment() const
783 {
784 if (rsr_fetch_operation != fetch_next && rsr_fetch_operation != fetch_prior)
785 return 0;
786
787 const bool isEnd = rsr_flags.test(Rsr::STREAM_END) && !rsr_flags.test(Rsr::PAST_END);
788 const SLONG offset = rsr_msgs_waiting + (isEnd ? 1 : 0);
789 const bool isAhead = (rsr_fetch_operation == fetch_next);
790 return isAhead ? -offset : offset;
791 }
792};
793
794

Callers 2

fetchMethod · 0.80
fetchMethod · 0.80

Calls 1

testMethod · 0.45

Tested by

no test coverage detected