]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
New requirements marks and a few new test cases to go with them. No changes
authordrh <drh@noemail.net>
Fri, 27 Feb 2015 20:28:08 +0000 (20:28 +0000)
committerdrh <drh@noemail.net>
Fri, 27 Feb 2015 20:28:08 +0000 (20:28 +0000)
to code.

FossilOrigin-Name: 8c2b29d9acb92d47f4deec21a7c2dca52db63345

manifest
manifest.uuid
src/sqliteLimit.h
test/autoindex1.test
test/fkey5.test
test/lock.test
test/pragma.test
test/pragma2.test

index b4667b6c0640e26f62244d0a24cfd514d83fdec8..701ff27033e33a0902d8757ee9cf842ffdd1e5d4 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Add\sa\scouple\sof\srequirements\smarks.
-D 2015-02-27T00:33:15.390
+C New\srequirements\smarks\sand\sa\sfew\snew\stest\scases\sto\sgo\swith\sthem.\s\sNo\schanges\nto\scode.
+D 2015-02-27T20:28:08.104
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 6b9e7677829aa94b9f30949656e27312aefb9a46
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -236,7 +236,7 @@ F src/sqlite.h.in 62d3997824038cc32335b04aaa18cc8f4c19e9be
 F src/sqlite3.rc 992c9f5fb8285ae285d6be28240a7e8d3a7f2bad
 F src/sqlite3ext.h 17d487c3c91b0b8c584a32fbeb393f6f795eea7d
 F src/sqliteInt.h 57a405ae6d2ed10fff52de376d18f21e04d96609
-F src/sqliteLimit.h 164b0e6749d31e0daa1a4589a169d31c0dec7b3d
+F src/sqliteLimit.h a3bf51a7484db35a7b1d0634a8a8788cccd4e986
 F src/status.c 81712116e826b0089bb221b018929536b2b5406f
 F src/table.c e7a09215315a978057fb42c640f890160dbcc45e
 F src/tclsqlite.c b290774586f022e16e04ba8ed2f0b8edd86b5b77
@@ -347,7 +347,7 @@ F test/auth.test 855233ef26eb3601b6886567ea4e326c72959360
 F test/auth2.test 264c6af53cad9aba5218c68bbe18036e39007bfa
 F test/auth3.test 5cfa94ed90c6617c42b7ba4b133fd79678b251c7
 F test/autoinc.test c58912526998a39e11f66b533e23cfabea7f25b7
-F test/autoindex1.test 6ff78b94f43a59616c06c11c55b12935173506d7
+F test/autoindex1.test 7008c9f604141fdabe31b7bb95b5ff31b518251f
 F test/autoindex2.test af7e595c6864cc6ef5fc38d5db579a3e34940cb8
 F test/autoindex3.test a3be0d1a53a7d2edff208a5e442312957047e972
 F test/autoindex4.test 49d3cd791a9baa16fb461d7ea3de80d019a819cf
@@ -503,7 +503,7 @@ F test/fkey1.test e1d1fa84cde579185ea01358436839703e415a5b
 F test/fkey2.test 1db212cda86b0d3ce72714001f7b6381c321341c
 F test/fkey3.test 76d475c80b84ee7a5d062e56ccb6ea68882e2b49
 F test/fkey4.test 86446017011273aad8f9a99c1a65019e7bd9ca9d
-F test/fkey5.test 488601fbda8350619b3029487e56830447056fd2
+F test/fkey5.test 56bcb5a6e8b725b17febc267fb041a6695e86853
 F test/fkey6.test abb59f866c1b44926fd02d1fdd217d831fe04f48
 F test/fkey7.test 72e915890ee4a005daaf3002cb208e8fe973ac13
 F test/fkey8.test 8f08203458321e6c19a263829de4cfc936274ab0
@@ -693,7 +693,7 @@ F test/like2.test 3b2ee13149ba4a8a60b59756f4e5d345573852da
 F test/limit.test 3d7df19c35ac672a11f7de406cd3205d592babbb
 F test/loadext.test 648cb95f324d1775c54a55c12271b2d1156b633b
 F test/loadext2.test 0408380b57adca04004247179837a18e866a74f7
-F test/lock.test 87af515b0c4cf928576d0f89946d67d7c265dfb4
+F test/lock.test b984ab9034e7389be0d863fe4e64cbbc4d2028f5
 F test/lock2.test 5242d8ac4e2d59c403aebff606af449b455aceff
 F test/lock3.test f271375930711ae044080f4fe6d6eda930870d00
 F test/lock4.test e175ae13865bc87680607563bafba21f31a26f12
@@ -787,8 +787,8 @@ F test/pcache.test b09104b03160aca0d968d99e8cd2c5b1921a993d
 F test/pcache2.test a83efe2dec0d392f814bfc998def1d1833942025
 F test/percentile.test 4243af26b8f3f4555abe166f723715a1f74c77ff
 F test/permutations.test f9cc1dd987986c9d4949211c7a4ed55ec9aecba1
-F test/pragma.test 6cf0f0ce4618e841457aa42745afda55ddbc95fe
-F test/pragma2.test aea7b3d82c76034a2df2b38a13745172ddc0bc13
+F test/pragma.test a6187e24d55ddad2b2af46022e473a605a260f27
+F test/pragma2.test f624a496a95ee878e81e59961eade66d5c00c028
 F test/pragma3.test 6f849ccffeee7e496d2f2b5e74152306c0b8757c
 F test/printf.test ec9870c4dce8686a37818e0bf1aba6e6a1863552
 F test/printf2.test b4acd4bf8734243257f01ddefa17c4fb090acc8a
@@ -1239,7 +1239,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 3bc34fd427d9d7819cd9740237b1f5d4180341fa
-R ea56360259f5f37b0ed4591b0dd003bd
+P d70b0fd4c94f2b70cf31c2ab9ef7a2fb2e71c182
+R 5e6d1ff7a404da4f62d2b00fe21c4e92
 U drh
-Z c0882f7c7d1c49cd54726f112c10b39e
+Z 7d013f116627badc7b6152666136f166
index 1881ff1d2886ecf3706bbc91b32a269eaad51087..e9a4409b5951aa3887163909a6576e2d5d9e23b0 100644 (file)
@@ -1 +1 @@
-d70b0fd4c94f2b70cf31c2ab9ef7a2fb2e71c182
\ No newline at end of file
+8c2b29d9acb92d47f4deec21a7c2dca52db63345
\ No newline at end of file
index c7aee53cebca94da51e71a822ea5a6deb90385df..3abad8437f068086434ac552218450ddb13944fd 100644 (file)
 #endif
 
 /*
-** The maximum number of in-memory pages to use for the main database
-** table and for temporary tables.  The SQLITE_DEFAULT_CACHE_SIZE
+** The suggested maximum number of in-memory pages to use for
+** the main database table and for temporary tables.
+**
+** EVIDENCE-OF: R-31093-59126 The default suggested cache size is 2000
+** pages.
+**
+** EVIDENCE-OF: R-45985-54577 The default cache sizes can be adjusted by
+** the SQLITE_DEFAULT_CACHE_SIZE compile-time options.
 */
 #ifndef SQLITE_DEFAULT_CACHE_SIZE
 # define SQLITE_DEFAULT_CACHE_SIZE  2000
index bcde5bc2e74f8330a0541611cb4caa31b6515c60..c5ce42c1d468bd22ad62ec0fee7fb6280765638f 100644 (file)
@@ -11,6 +11,9 @@
 # This file implements regression tests for SQLite library.  The
 # focus of this script is testing automatic index creation logic.
 #
+# EVIDENCE-OF: R-34271-33106 PRAGMA automatic_index; PRAGMA
+# automatic_index = boolean; Query, set, or clear the automatic indexing
+# capability.
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
index dc866cbdb81b5cfbb3e890b91fac5982eac27664..21feb2bb8bf9aa5870ac442fc91986c855aad80a 100644 (file)
 #
 # This file tests the PRAGMA foreign_key_check command.
 #
-# EVIDENCE-OF: R-05426-18119 PRAGMA foreign_key_check; PRAGMA
-# foreign_key_check(table-name);
+# EVIDENCE-OF: R-01427-50262 PRAGMA database.foreign_key_check; PRAGMA
+# database.foreign_key_check(table-name);
+#
+# EVIDENCE-OF: R-23918-17301 The foreign_key_check pragma checks the
+# database, or the table called "table-name", for foreign key
+# constraints that are violated and returns one row of output for each
+# violation.
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
@@ -74,6 +79,16 @@ do_test fkey5-1.2 {
     PRAGMA foreign_key_check;
   }
 } {c1 87 p1 0 c1 90 p1 0}
+do_test fkey5-1.2b {
+  db eval {
+    PRAGMA main.foreign_key_check;
+  }
+} {c1 87 p1 0 c1 90 p1 0}
+do_test fkey5-1.2c {
+  db eval {
+    PRAGMA temp.foreign_key_check;
+  }
+} {}
 do_test fkey5-1.3 {
   db eval {
     PRAGMA foreign_key_check(c1);
@@ -84,6 +99,16 @@ do_test fkey5-1.4 {
     PRAGMA foreign_key_check(c2);
   }
 } {}
+do_test fkey5-1.5 {
+  db eval {
+    PRAGMA main.foreign_key_check(c2);
+  }
+} {}
+do_test fkey5-1.6 {
+  catchsql {
+    PRAGMA temp.foreign_key_check(c2);
+  }
+} {1 {no such table: temp.c2}}
 
 # EVIDENCE-OF: R-45728-08709 There are four columns in each result row.
 #
index 6ec85eea3cef5fdc2b67c13776ad7ef871d26cf0..f785c4bb2384ecedaa37c2b184b48f660f908c53 100644 (file)
@@ -241,6 +241,9 @@ execsql {ROLLBACK}
 
 # Test the built-in busy timeout handler
 #
+# EVIDENCE-OF: R-23579-05241 PRAGMA busy_timeout; PRAGMA busy_timeout =
+# milliseconds; Query or change the setting of the busy timeout.
+#
 do_test lock-2.8 {
   db2 timeout 400
   execsql BEGIN
index e2673d3eef112231c0fceb9abfe443e9dd0d17c4..912c2f956d019610f10d2e6e7e2ebd13b01e3b2a 100644 (file)
@@ -83,7 +83,11 @@ delete_file test.db test.db-journal
 delete_file test3.db test3.db-journal
 sqlite3 db test.db; set DB [sqlite3_connection_pointer db]
 
-
+# EVIDENCE-OF: R-24197-42751 PRAGMA database.cache_size; PRAGMA
+# database.cache_size = pages; PRAGMA database.cache_size = -kibibytes;
+# Query or change the suggested maximum number of database disk pages
+# that SQLite will hold in memory at once per open database file.
+#
 ifcapable pager_pragmas {
 set DFLT_CACHE_SZ [db one {PRAGMA default_cache_size}]
 set TEMP_CACHE_SZ [db one {PRAGMA temp.default_cache_size}]
@@ -95,6 +99,8 @@ do_test pragma-1.1 {
   }
 } [list $DFLT_CACHE_SZ $DFLT_CACHE_SZ 2]
 do_test pragma-1.2 {
+  # EVIDENCE-OF: R-42059-47211 If the argument N is positive then the
+  # suggested cache size is set to N.
   execsql {
     PRAGMA synchronous=OFF;
     PRAGMA cache_size=1234;
index 0dbc9777d261ffe8d7d770f3bf395fc1df9cd150..3ade8c1a07bd550f32a140a1c22473f91395f150 100644 (file)
@@ -39,6 +39,10 @@ delete_file test3.db test3.db-journal
 sqlite3 db test.db; set DB [sqlite3_connection_pointer db]
 db eval {PRAGMA auto_vacuum=0}
 
+
+# EVIDENCE-OF: R-17887-14874 PRAGMA database.freelist_count; Return the
+# number of unused pages in the database file.
+#
 do_test pragma2-1.1 {
   execsql {
     PRAGMA freelist_count;