Skip to content

bug: fix query representation to string #290

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

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

liranbg
Copy link
Contributor

@liranbg liranbg commented Apr 27, 2023

Reason for the change
If applicable, link the related issue/bug report or write down in few sentences the motivation.

Trying to build a query dynamically and log it

Description
Seems like there was a mass change from st to statement during rethinkdb 2.1->2.4 but that specifically property was not converted right, thus, left the changed line defunc.

This PR changes it back to st until maintainer finishes the refactor

Code examples

from rethinkdb import r
filtering_query_b = (r.row["something"] == "someone") & (r.row["else"] == "else")
print(str(filtering_query_b))

will yield an error of

Unable to serialize object: 'And' object has no attribute 'statement_infix'

Checklist

@codeclimate
Copy link

codeclimate bot commented Apr 27, 2023

Code Climate has analyzed commit 99c521d and detected 0 issues on this pull request.

View more on Code Climate.

@lsabi lsabi merged commit c4e4ef6 into rethinkdb:master Apr 27, 2023
@lsabi
Copy link
Contributor

lsabi commented Apr 27, 2023

Thanks for the contribution!

@liranbg liranbg deleted the fix-strinfigying-rql-query branch April 27, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants