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

Fix CONTINUE and STOP queries with implicit DB #52

Merged
merged 1 commit into from
Jul 2, 2015

Conversation

danielcompton
Copy link
Collaborator

  • Fix handling of CONTINUE and STOP queries. Global optargs from the db
    connection were being appended to every query that was being sent if
    the db parameter was set on the connection. START queries have two
    elements in the vector: query type (START), and query. However
    CONTINUE and STOP queries only have a single query type in the vector, so
    the global optargs were getting appended as the second element in
    these vectors. This caused RethinkDB to throw an error as we weren't
    sending a valid query.
  • Update changelog
  • Add failing tests that pass with this fix.

To avoid these kinds of bugs in the future, it could be good to turn the query vector into a map with named elements.

@danielcompton danielcompton force-pushed the fix-implicit-db-with-changefeeds branch from ac1acbb to 4a43eba Compare July 2, 2015 02:19
- Fix handling of CONTINUE and STOP queries. Global optargs from the db
  connection were being appended to every query that was being sent if
  the db parameter was set on the connection. START queries have two
  elements in the vector: query type (START), and query. However
  CONTINUE and STOP queries only have a single query type in the vector, so
  the global optargs were getting appended as the second element in
  these vectors. This caused RethinkDB to throw an error as we weren't
  sending a valid query.
- Update changelog
- Add failing tests that pass with this fix.
@danielcompton danielcompton force-pushed the fix-implicit-db-with-changefeeds branch from 4a43eba to 53cea15 Compare July 2, 2015 02:25
@danielcompton danielcompton self-assigned this Jul 2, 2015
danielcompton added a commit that referenced this pull request Jul 2, 2015
Fix CONTINUE and STOP queries with implicit DB
@danielcompton danielcompton merged commit 8f18c23 into master Jul 2, 2015
@danielcompton danielcompton deleted the fix-implicit-db-with-changefeeds branch July 2, 2015 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant