• Just looking at the cursor code itself, it looks like there is a FETCH missing inside the while loop, or did I just miss seeing it?