diff options
Diffstat (limited to 'third_party/sqlite/src/test/capi3c.test')
-rw-r--r-- | third_party/sqlite/src/test/capi3c.test | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/third_party/sqlite/src/test/capi3c.test b/third_party/sqlite/src/test/capi3c.test index af97943..1bcc437 100644 --- a/third_party/sqlite/src/test/capi3c.test +++ b/third_party/sqlite/src/test/capi3c.test @@ -19,11 +19,6 @@ set testdir [file dirname $argv0] source $testdir/tester.tcl -# Do not use a codec for tests in this file, as the database file is -# manipulated directly using tcl scripts (using the [hexio_write] command). -# -do_not_use_codec - # Return the UTF-16 representation of the supplied UTF-8 string $str. # If $nt is true, append two 0x00 bytes as a nul terminator. proc utf16 {str {nt 1}} { @@ -611,7 +606,7 @@ db close do_test capi3c-6.0 { sqlite3 db test.db set DB [sqlite3_connection_pointer db] - if {[sqlite3 -has-codec]==0} { sqlite3_key $DB xyzzy } + sqlite3_key $DB xyzzy set sql {SELECT a FROM t1 order by rowid} set STMT [sqlite3_prepare_v2 $DB $sql -1 TAIL] expr 0 @@ -658,7 +653,7 @@ if {![sqlite3 -has-codec]} { set_file_format 5 } {} do_test capi3c-7.2 { - catch { sqlite3 db test.db } + sqlite3 db test.db catchsql { SELECT * FROM sqlite_master; } @@ -686,7 +681,7 @@ if {![sqlite3 -has-codec]} { db close } {} do_test capi3c-8.3 { - catch { sqlite3 db test.db } + sqlite3 db test.db catchsql { SELECT * FROM sqlite_master; } @@ -705,7 +700,7 @@ if {![sqlite3 -has-codec]} { db close } {}; do_test capi3c-8.5 { - catch { sqlite3 db test.db } + sqlite3 db test.db catchsql { SELECT * FROM sqlite_master; } @@ -1181,7 +1176,7 @@ do_test capi3c-19.4 { sqlite3_reset $STMT db eval {DROP TABLE t3} sqlite3_step $STMT -} SQLITE_ERROR +} SQLITE_SCHEMA do_test capi3c-19.4.1 { sqlite3_errmsg $DB } {no such table: t3} |