-
Notifications
You must be signed in to change notification settings - Fork 590
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
BUG: Fix sort_by codegen and repeated compilation issue #1181
Conversation
a307b22
to
074e6c9
Compare
|
@wesm can you review this when you get a chance? |
|
will do |
| expr.compile().compile(compile_kwargs={'literal_binds': True}) | ||
| ) | ||
| expected = """\ | ||
| SELECT count('*') AS count |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the count-star syntax for sqlite, I guess (did not know that)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, actually this will have the same behavior as count(*) except in the case of an empty table. I need to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, nevermind. This is the form suggested by the SQLAlchemy docs.
074e6c9
to
1157257
Compare
1157257
to
f1e2ebe
Compare
|
Thanks for the review @wesm |
Closes #1179
Closes #1180