Skip to content

Report SQL file syntax errors before execution - #1707

Merged
lovasoa merged 4 commits into
mainfrom
fix/report-sql-file-syntax-errors
Dec 5, 2026
Merged

lovasoa merged 4 commits into
mainfrom
fix/report-sql-file-syntax-errors

Conversation

@lovasoa

@lovasoa lovasoa commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

When SQLPage detects a syntax error while parsing a page, it reports the error before running any statement in that file. This matters for pages that write data or redirect before the error. Previously, a write could commit or a redirect could succeed before SQLPage reached the diagnostic.

For the SET new_id = INSERT INTO … example, the error points at INTO in the original file. Previously, SQLite reported a syntax error in the generated SELECT INSERT AS sqlpage_set_expr. Discussion #1706

@lovasoa
lovasoa added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 03f1f2a Dec 5, 2026
28 checks passed
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.

1 participant