-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix aggregate queries with case expressions (#354)
* Fix aggregate queries with case expressions
- Loading branch information
1 parent
0899188
commit adc01a5
Showing
3 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adc01a5
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.
The new function format_group_by_params in this commit creates problems. If the SQL query contains the percent sign that should remain, for example in a LIKE SQL query, there will be a problem on line 619 in the format_sql function as the escaped percent sign has already been handled in line 640 in the format_group_by_params function. So you get an exception TypeError: not enough arguments for format string. So the solution should be to somehow merge the functions format_group_by_params and format_sql as they destroy each other's SQL code. I have tried to find a good solution for a code change but have not succeeded.