Commit 03ea117
fix(testdata): Update SQLite tests for real database analyzer
The SQLite database analyzer now validates queries against real SQLite,
revealing several issues in test files:
- builtins: Remove sqlite_offset (not available in standard SQLite)
- ddl_create_trigger: Add missing tables referenced by trigger
- insert_select_invalid: Separate schema from query, update error message
- invalid_group_by_reference: Separate schema from query, update error message
- invalid_table_alias: Fix INT to INTEGER, separate schema, update error
- join_left_same_table: Fix authors.parent_id to a.parent_id (use alias)
- limit: Remove UPDATE/DELETE LIMIT (requires special compile option)
- quoted_names_complex: Fix UPDATE referencing renamed table
- select_exists: Change INT to INTEGER for AUTOINCREMENT
- select_not_exists: Fix whitespace, detect parameter
- sqlc_embed: Use :memory: for ATTACH, fix u.users.id to u.id
Tests with different error messages in base vs managed-db contexts now
have exec.json files limiting them to managed-db context only.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 49e1ce4 commit 03ea117
File tree
31 files changed
+66
-74
lines changed- internal/endtoend/testdata
- builtins/sqlite
- go
- queries
- ddl_create_trigger/sqlite
- go
- insert_select_invalid/sqlite
- invalid_group_by_reference/sqlite
- invalid_table_alias/sqlite
- join_left_same_table/sqlite
- go
- limit/sqlite
- go
- quoted_names_complex/sqlite
- select_exists/sqlite
- select_not_exists/sqlite
- go
- sqlc_embed/sqlite
- go
31 files changed
+66
-74
lines changedLines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
| |||
Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
5 | 16 | | |
6 | | - | |
| 17 | + | |
7 | 18 | | |
8 | 19 | | |
9 | 20 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments