123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- source [file join [file dirname [info script]] fts5_common.tcl]
- set testprefix fts5limits
- return_if_no_fts5
- do_execsql_test 1.0 {
- CREATE VIRTUAL TABLE ft USING fts5(x);
- }
- foreach {tn nRepeat op bErr} {
- 1 200 AND 0
- 2 200 NOT 0
- 3 200 OR 0
- 4 260 AND 0
- 5 260 NOT 1
- 6 260 OR 0
- } {
- set L [string repeat "abc " $nRepeat]
- set Q [join $L " $op "]
- set res {0 {}}
- if {$bErr} {
- set res "1 {fts5 expression tree is too large (maximum depth 256)}"
- }
- do_catchsql_test 1.$tn {
- SELECT * FROM ft($Q)
- } $res
- }
- finish_test
|