Handling for select statement in cursor-mock.