Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add new file e_delete.test. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
14e8659e576258b64d67cb3f1222f173 |
User & Date: | dan 2010-09-21 19:00:46.000 |
Context
2010-09-22
| ||
14:19 | Add new file rtreeA.test, to test that the r-tree extension doesn't crash if it encounters a corrupt or inconsistent database. (check-in: 68a305fd5a user: dan tags: trunk) | |
2010-09-21
| ||
19:00 | Add new file e_delete.test. (check-in: 14e8659e57 user: dan tags: trunk) | |
16:59 | Add tests to e_update.test. (check-in: 528f71e29c user: dan tags: trunk) | |
Changes
Added test/e_delete.test.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # 2010 September 21 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # # This file implements tests to verify that the "testable statements" in # the lang_delete.html document are correct. # set testdir [file dirname $argv0] source $testdir/tester.tcl proc do_delete_tests {args} { uplevel do_select_tests $args } do_execsql_test e_delete-0.0 { CREATE TABLE t1(a, b); CREATE INDEX i1 ON t1(a); } {} # EVIDENCE-OF: R-24177-52883 -- syntax diagram delete-stmt # # EVIDENCE-OF: R-12802-60464 -- syntax diagram qualified-table-name # do_delete_tests e_delete-0.1 { 1 "DELETE FROM t1" {} 2 "DELETE FROM t1 INDEXED BY i1" {} 3 "DELETE FROM t1 NOT INDEXED" {} 4 "DELETE FROM main.t1" {} 5 "DELETE FROM main.t1 INDEXED BY i1" {} 6 "DELETE FROM main.t1 NOT INDEXED" {} 7 "DELETE FROM t1 WHERE a>2" {} 8 "DELETE FROM t1 INDEXED BY i1 WHERE a>2" {} 9 "DELETE FROM t1 NOT INDEXED WHERE a>2" {} 10 "DELETE FROM main.t1 WHERE a>2" {} 11 "DELETE FROM main.t1 INDEXED BY i1 WHERE a>2" {} 12 "DELETE FROM main.t1 NOT INDEXED WHERE a>2" {} } finish_test |