diff options
author | drh <> | 2022-02-16 15:11:01 +0000 |
---|---|---|
committer | drh <> | 2022-02-16 15:11:01 +0000 |
commit | be4e3c88f5e0eca8385a27e05361a6860bfcfa9b (patch) | |
tree | c55f1a2a22b96a39c203183b301f0ebf39163efd /test/tclsqlite.test | |
parent | 537a6bf1899942db02d83da4db9023f40fcfb1d5 (diff) | |
download | sqlite-be4e3c88f5e0eca8385a27e05361a6860bfcfa9b.tar.gz sqlite-be4e3c88f5e0eca8385a27e05361a6860bfcfa9b.zip |
Make the sqlite3_error_offset() interface accessible from TCL using the
new "erroroffset" method on the sqlite3 object.
FossilOrigin-Name: 3454a1222bedefba527af98c0284ed0bfbd28dd941885d9a0ac9a44aea2fc8ec
Diffstat (limited to 'test/tclsqlite.test')
-rw-r--r-- | test/tclsqlite.test | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/tclsqlite.test b/test/tclsqlite.test index c2fa522e6..0758abd82 100644 --- a/test/tclsqlite.test +++ b/test/tclsqlite.test @@ -42,7 +42,7 @@ do_test tcl-1.1.1 { do_test tcl-1.2 { set v [catch {db bogus} msg] lappend v $msg -} {1 {bad option "bogus": must be authorizer, backup, bind_fallback, busy, cache, changes, close, collate, collation_needed, commit_hook, complete, config, copy, deserialize, enable_load_extension, errorcode, eval, exists, function, incrblob, interrupt, last_insert_rowid, nullvalue, onecolumn, preupdate, profile, progress, rekey, restore, rollback_hook, serialize, status, timeout, total_changes, trace, trace_v2, transaction, unlock_notify, update_hook, version, or wal_hook}} +} {1 {bad option "bogus": must be authorizer, backup, bind_fallback, busy, cache, changes, close, collate, collation_needed, commit_hook, complete, config, copy, deserialize, enable_load_extension, errorcode, erroroffset, eval, exists, function, incrblob, interrupt, last_insert_rowid, nullvalue, onecolumn, preupdate, profile, progress, rekey, restore, rollback_hook, serialize, status, timeout, total_changes, trace, trace_v2, transaction, unlock_notify, update_hook, version, or wal_hook}} do_test tcl-1.2.1 { set v [catch {db cache bogus} msg] lappend v $msg @@ -883,5 +883,10 @@ do_test 20.2 { list $rc $msg } {0 {10 1 20 30 30 40}} -finish_test +sqlite3 db :memory: +do_test 21.1 { + catch {db eval {SELECT 1 2 3;}} msg + db erroroffset +} {9} +finish_test |