Commit 37d308c
Suppress spurious result columns from ALTER TABLE in SQLite 3.52.0
SQLite 3.52.0 uses internal nested SELECTs (sqlite_fail()) for ALTER
TABLE constraint validation. These leak through sqlite3_column_count,
producing empty result sets that appear as query output. Fix this in
QueryCore by using SQLite's own tokenizer to detect ALTER statements
and suppressing result collection for them.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 00f34ce commit 37d308c
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
478 | 486 | | |
479 | 487 | | |
480 | 488 | | |
| |||
489 | 497 | | |
490 | 498 | | |
491 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
492 | 512 | | |
493 | 513 | | |
494 | 514 | | |
| |||
0 commit comments