mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Increase test coverage of where.c. Make sure OR-optimization works on
UPDATE and DELETE in addition to SELECT. (Bug found by coverage tests.) (CVS 6139) FossilOrigin-Name: 4b2c08e8984befb12fa2173ca89d9f54cf764d22
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
#
|
||||
# This test script checks malloc failures in WHERE clause analysis.
|
||||
#
|
||||
# $Id: mallocK.test,v 1.1 2009/01/07 20:58:57 drh Exp $
|
||||
# $Id: mallocK.test,v 1.2 2009/01/08 03:11:19 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -27,7 +27,7 @@ for {set x 1} {$x<5} {incr x} {
|
||||
}
|
||||
}
|
||||
|
||||
set sql {SELECT * FROM t1 WHERE a LIKE 'abc%'}
|
||||
set sql {SELECT * FROM t1 WHERE a GLOB 'xyz*'}
|
||||
for {set x 1} {$x<5} {incr x} {
|
||||
append sql " AND b!=$x"
|
||||
do_malloc_test mallocK-2.$x -sqlbody $sql -sqlprep {
|
||||
|
Reference in New Issue
Block a user