-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance query builder with improved alias handling (#285)
* feat: enhance query builder with improved alias handling - Updated `quote` function to handle SQL expressions with aliases more robustly. - Added support for quoting function expressions like `COUNT(id) as count` and `MAX(id) as maxId`. - Improved test coverage by adding a test case for `select count` in both v1 and v2 test suites. - Ensured consistent quoting of standalone identifiers and expressions in query generation. This change improves the flexibility and correctness of SQL query generation, particularly in handling complex expressions with aliases. * v0.30.1
- Loading branch information
1 parent
2e45dce
commit 4ab094f
Showing
5 changed files
with
69 additions
and
15 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
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