Skip to content

fix(sqlite): populate SelectStmt.SortClause during AST conversion#1

Merged
celso-alexandre merged 1 commit into
evox-it:feat/sqlc-switchfrom
fahmifan:feat/sqlc-switch-sqlite-order-by-support
Jun 12, 2026
Merged

fix(sqlite): populate SelectStmt.SortClause during AST conversion#1
celso-alexandre merged 1 commit into
evox-it:feat/sqlc-switchfrom
fahmifan:feat/sqlc-switch-sqlite-order-by-support

Conversation

@fahmifan

@fahmifan fahmifan commented Jun 6, 2026

Copy link
Copy Markdown

SQLite ORDER BY clauses were parsed but not propagated into SelectStmt.SortClause during AST conversion.

This caused ORDER BY expressions, including sqlc.switch(...) and function calls such as upper(name), to be invisible to later AST visitors and macro recognition passes.

SQLite ORDER BY clauses were parsed but not propagated into
SelectStmt.SortClause during AST conversion.

This caused ORDER BY expressions, including sqlc.switch(...)
and function calls such as upper(name), to be invisible to
later AST visitors and macro recognition passes.

Co-authored-by: OpenAI Codex <codex@openai.com>
@fahmifan fahmifan force-pushed the feat/sqlc-switch-sqlite-order-by-support branch from ae22719 to f7bf98b Compare June 6, 2026 04:48
@celso-alexandre celso-alexandre merged commit 006f4e8 into evox-it:feat/sqlc-switch Jun 12, 2026
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