Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/ext/vec1/test/vec1blocksize.test # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / ext / vec1 / test / vec1blocksize.test` 65 lines ยท 2045 bytes Raw Blame History 1 # 2026-04-02 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 # 12 # 13 14 source [file join [file dirname [info script]] vec1_common.tcl] 15 set testprefix vec1blocksize 16 vec1_load db 17 18 do_execsql_test 1.0 { 19 CREATE VIRTUAL TABLE v1 USING vec1; 20 } 21 22 do_catchsql_test 1.1 { 23 INSERT INTO v1(cmd, arg) VALUES('blocksize', 64); 24 } {1 {'blocksize' requires an integer value between 1024 and `16777216`}} 25 26 do_catchsql_test 1.2 { 27 INSERT INTO v1(cmd, arg) VALUES('blocksize', 1023); 28 } {1 {'blocksize' requires an integer value between 1024 and `16777216`}} 29 30 do_catchsql_test 1.3 { 31 INSERT INTO v1(cmd, arg) VALUES('blocksize', `16777217`); 32 } {1 {'blocksize' requires an integer value between 1024 and `16777216`}} 33 34 do_execsql_test 1.4 { 35 INSERT INTO v1(cmd, arg) VALUES('blocksize', 1024); 36 INSERT INTO v1(cmd, arg) VALUES('blocksize', `16777216`); 37 } {} 38 39 do_catchsql_test 2.1 { 40 INSERT INTO v1(cmd, arg) VALUES('blocksize-min', 64); 41 } {1 {'blocksize-min' requires an integer value between 1024 and `16777216`}} 42 43 do_catchsql_test 2.2 { 44 INSERT INTO v1(cmd, arg) VALUES('blocksize-min', 1023); 45 } {1 {'blocksize-min' requires an integer value between 1024 and `16777216`}} 46 47 do_catchsql_test 2.3 { 48 INSERT INTO v1(cmd, arg) VALUES('blocksize-min', `16777217`); 49 } {1 {'blocksize-min' requires an integer value between 1024 and `16777216`}} 50 51 do_execsql_test 2.4 { 52 INSERT INTO v1(cmd, arg) VALUES('blocksize-min', 1024); 53 INSERT INTO v1(cmd, arg) VALUES('blocksize-min', `16777216`); 54 } {} 55 56 do_catchsql_test 3.0 { 57 INSERT INTO v1(cmd, arg) VALUES('not-blocksize', 1024); 58 } {1 {vec1: unknown command: not-blocksize}} 59 60 do_catchsql_test 3.1 { 61 INSERT INTO v1(cmd, arg) VALUES('blocksize', 'not integer'); 62 } {1 {'blocksize' requires an integer value between 1024 and `16777216`}} 63 64 finish_test 65