In any case the record is the last if you can not fetch the next.
So you have to save your previous record somewhere else and delay your processing (do it on the next fetch when it's clear that your previous record is the last one)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.