Partial implementation of CursorMock.__getitem__