Positive logic and early return
Fix for RT#92810 - Allow re-executing/fetch on prepared sth

finish the statement when re-executing and sth is active
typo ICS != ISC
Merge pull request #39 from Tux/master

Fixed typo - ICS != ISC