sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
| 1 | #!sqlite3 |
| 2 | # |
| 3 | # 2026-03-01 |
| 4 | # |
| 5 | # The author disclaims copyright to this source code. In place of |
| 6 | # a legal notice, here is a blessing: |
| 7 | # |
| 8 | # May you do good and not evil. |
| 9 | # May you find forgiveness for yourself and forgive others. |
| 10 | # May you share freely, never taking more than you give. |
| 11 | # |
| 12 | #*********************************************************************** |
| 13 | # |
| 14 | # Bug report sqlite.org/forum/forumpost/efc9bc9cb3 |
| 15 | # |
| 16 | .open :memory: |
| 17 | .dbconfig defensive off |
| 18 | .testcase 100 |
| 19 | .mode quote |
| 20 | .intck register |
| 21 | SELECT parse_create_index('CREATE IDEX i ON t("x',0); |
| 22 | .check NULL |
| 23 | .testcase 110 |
| 24 | SELECT parse_create_index(strdup(''),0); |
| 25 | .check NULL |