1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Miscellaneous code simplifications and cleanup and test coverage

enhancements. (CVS 4730)

FossilOrigin-Name: af129b6d158cc90ce9752dd6383c1de47f7b3e43
This commit is contained in:
drh
2008-01-19 20:11:25 +00:00
parent a05a722f23
commit 91fd4d46ad
16 changed files with 289 additions and 91 deletions

View File

@ -17,7 +17,7 @@
# sqlite_update_hook (tests hook-4-*)
# sqlite_rollback_hook (tests hook-5.*)
#
# $Id: hook.test,v 1.12 2007/10/09 08:29:32 danielk1977 Exp $
# $Id: hook.test,v 1.13 2008/01/19 20:11:26 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -137,6 +137,24 @@ do_test hook-4.1.2 {
DELETE main t1 4 \
]
# Update hook is not invoked for changes to sqlite_master
#
do_test hook-4.1.3 {
set ::update_hook {}
execsql {
CREATE TRIGGER r1 AFTER INSERT ON t1 BEGIN SELECT RAISE(IGNORE); END;
}
set ::update_hook
} {}
do_test hook-4.1.4 {
set ::update_hook {}
execsql {
DROP TRIGGER r1;
}
set ::update_hook
} {}
set ::update_hook {}
ifcapable trigger {
do_test hook-4.2.1 {