Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1054: Set query cursor to 'None' when returned as empty string. #1060

Merged
merged 1 commit into from
Aug 12, 2015
Merged

#1054: Set query cursor to 'None' when returned as empty string. #1060

merged 1 commit into from
Aug 12, 2015

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Aug 12, 2015

See #1054.

@tseaver tseaver added the api: datastore Issues related to the Datastore API. label Aug 12, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 12, 2015
@@ -418,7 +418,10 @@ def next_page(self):
# for discussion.
entity_pbs, cursor_as_bytes, more_results_enum = query_results[:3]

self._start_cursor = base64.b64encode(cursor_as_bytes)
if cursor_as_bytes == b'':

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Aug 12, 2015

LGTM but I'm still not sure if Connect.run_query should remain unchanged.

tseaver added a commit that referenced this pull request Aug 12, 2015
#1054: Set query cursor to 'None' when returned as empty string.
@tseaver tseaver merged commit e1913fa into googleapis:master Aug 12, 2015
@tseaver tseaver deleted the 1054-nullify_empty_query_cursor branch August 12, 2015 20:21
@dhermes
Copy link
Contributor

dhermes commented Aug 12, 2015

@tseaver I was hoping we could discuss my concern before merging. Should I have held off the LGTM to make it clearer?

@tseaver
Copy link
Contributor Author

tseaver commented Aug 13, 2015

Sorry -- I did take the LGTM as a green light. Maybe re-open #1054 with your extra concern?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants