sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
sqlite / ext / fts5 / test / fts5bigtok2.test
| 1 | # 2026 June 19 |
| 2 | # |
| 3 | # The author disclaims copyright to this source code. In place of |
| 4 | # a legal notice, here is a blessing: |
| 5 | # |
| 6 | # May you do good and not evil. |
| 7 | # May you find forgiveness for yourself and forgive others. |
| 8 | # May you share freely, never taking more than you give. |
| 9 | # |
| 10 | #************************************************************************* |
| 11 | # This file implements regression tests for SQLite library. The |
| 12 | # focus of this script is testing the FTS5 module. |
| 13 | # |
| 14 | |
| 15 | source [file join [file dirname [info script]] fts5_common.tcl] |
| 16 | set testprefix fts5bigtok2 |
| 17 | return_if_no_fts5 |
| 18 | |
| 19 | set big [string repeat a 1080000000] |
| 20 | do_execsql_test 1.0 { |
| 21 | CREATE VIRTUAL TABLE t USING fts5(x); |
| 22 | } |
| 23 | |
| 24 | do_catchsql_test 1.1 { INSERT INTO t VALUES($big); } {0 {}} |
| 25 | |
| 26 | set big {} |
| 27 | |
| 28 | finish_test |