mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Do not allow indexing of any table whose name begins with "sqlite_".
Ticket #3284. Improve handling of databases with malformed schemas - just in case somebody has actually indexed a system table. (CVS 5553) FossilOrigin-Name: 0e1d8d14a153483e65bd0246d23db2b823a122d1
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
#
|
||||
# This file implements tests to increase coverage of trigger.c.
|
||||
#
|
||||
# $Id: trigger7.test,v 1.2 2008/03/19 13:03:34 drh Exp $
|
||||
# $Id: trigger7.test,v 1.3 2008/08/11 18:44:58 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -116,6 +116,6 @@ do_test trigger7-99.1 {
|
||||
catchsql {
|
||||
DROP TRIGGER t2r5
|
||||
}
|
||||
} {1 {malformed database schema (t1) - near "nonsense": syntax error}}
|
||||
} {1 {malformed database schema (t2r12) - near "nonsense": syntax error}}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user