Execute the underlying statement. The resulting cursor is passed to the given block.
The cursor is closed automatically after the block returns.