Many spelling fixes in comments. No changes to code.
FossilOrigin-Name: 6f6e2d50941e444ebc83604daddcc034137a05b7
This commit is contained in:
@@ -115,7 +115,7 @@ proc clear_ioerr_simulation {} {
|
||||
# reported, then the backup process is concluded with a call to
|
||||
# backup_finish().
|
||||
#
|
||||
# Test that if an IO error occurs, or if one occured while updating
|
||||
# Test that if an IO error occurs, or if one occurred while updating
|
||||
# the backup database during step 4, then the conditions listed
|
||||
# under step 3 are all true.
|
||||
#
|
||||
@@ -214,7 +214,7 @@ for {set iError 1} {$bStop == 0} {incr iError} {
|
||||
set rc [catchsql { UPDATE t1 SET b = randstr(1000,1000) WHERE a < 50 } sdb]
|
||||
|
||||
if {[lindex $rc 0] && $::sqlite_io_error_persist==0} {
|
||||
# The IO error occured while updating the source database. In this
|
||||
# The IO error occurred while updating the source database. In this
|
||||
# case the backup should be able to continue.
|
||||
set rc [B step 5000]
|
||||
if { $rc != "SQLITE_IOERR_UNLOCK" } {
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ do_test cache-1.2 {
|
||||
# leaked, but would not be reused until the pager-cache was full (i.e.
|
||||
# 2000 pages by default).
|
||||
#
|
||||
# This tests that once the pager-cache is initialised, it can be locked
|
||||
# This tests that once the pager-cache is initialized, it can be locked
|
||||
# and unlocked repeatedly without internally allocating any new pages.
|
||||
#
|
||||
set cache_size [pager_cache_size db]
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ proc cksort {sql} {
|
||||
#
|
||||
# Because these tests also exercise all the different ways indices
|
||||
# can be created, they also serve to verify that indices are correctly
|
||||
# initialised with user-defined collation sequences when they are
|
||||
# initialized with user-defined collation sequences when they are
|
||||
# created.
|
||||
#
|
||||
# Tests named collate4-1.1.* use indices with a single column. Tests
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ for {set ii 0} {$ii < 10} {incr ii} {
|
||||
# puts "$n $msg ac=[sqlite3_get_autocommit db]"
|
||||
|
||||
# If the transaction is still active (it may not be if the malloc()
|
||||
# failure occured in the OS layer), write to the database. Make sure
|
||||
# failure occurred in the OS layer), write to the database. Make sure
|
||||
# page 4 is among those written.
|
||||
#
|
||||
if {![sqlite3_get_autocommit db]} {
|
||||
|
||||
@@ -1257,7 +1257,7 @@ do_createtable_tests 4.4 {
|
||||
# SQLite allows NULL values in a PRIMARY KEY column.
|
||||
#
|
||||
# If the column is an integer primary key, attempting to insert a NULL
|
||||
# into the column triggers the auto-increment behaviour. Attempting
|
||||
# into the column triggers the auto-increment behavior. Attempting
|
||||
# to use UPDATE to set an ipk column to a NULL value is an error.
|
||||
#
|
||||
do_createtable_tests 4.5.1 {
|
||||
|
||||
+3
-3
@@ -2741,8 +2741,8 @@ do_test e_fkey-60.6 {
|
||||
} {}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Test that the special behaviours of ALTER and DROP TABLE are only
|
||||
# activated when foreign keys are enabled. Special behaviours are:
|
||||
# Test that the special behaviors of ALTER and DROP TABLE are only
|
||||
# activated when foreign keys are enabled. Special behaviors are:
|
||||
#
|
||||
# 1. ADD COLUMN not allowing a REFERENCES clause with a non-NULL
|
||||
# default value.
|
||||
@@ -2837,7 +2837,7 @@ foreach zMatch [list SIMPLE PARTIAL FULL Simple parTIAL FuLL ] {
|
||||
do_test e_fkey-62.$zMatch.2 {
|
||||
execsql { INSERT INTO p VALUES(1, 2, 3) }
|
||||
|
||||
# MATCH SIMPLE behaviour: Allow any child key that contains one or more
|
||||
# MATCH SIMPLE behavior: Allow any child key that contains one or more
|
||||
# NULL value to be inserted. Non-NULL values do not have to map to any
|
||||
# parent key values, so long as at least one field of the child key is
|
||||
# NULL.
|
||||
|
||||
+1
-1
@@ -1227,7 +1227,7 @@ do_select_tests e_select-5.1 {
|
||||
# the entire set of result rows are returned by the SELECT.
|
||||
#
|
||||
# EVIDENCE-OF: R-47911-02086 If neither ALL or DISTINCT are present,
|
||||
# then the behaviour is as if ALL were specified.
|
||||
# then the behavior is as if ALL were specified.
|
||||
#
|
||||
# EVIDENCE-OF: R-14442-41305 If the simple SELECT is a SELECT DISTINCT,
|
||||
# then duplicate rows are removed from the set of result rows before it
|
||||
|
||||
+1
-1
@@ -361,7 +361,7 @@ foreach {tn uri error} "
|
||||
#
|
||||
# EVIDENCE-OF: R-19510-48080 If sqlite3_open_v2() is used and the
|
||||
# "cache" parameter is present in a URI filename, its value overrides
|
||||
# any behaviour requested by setting SQLITE_OPEN_PRIVATECACHE or
|
||||
# any behavior requested by setting SQLITE_OPEN_PRIVATECACHE or
|
||||
# SQLITE_OPEN_SHAREDCACHE flag.
|
||||
#
|
||||
set orig [sqlite3_enable_shared_cache]
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ ifcapable {!utf16} {
|
||||
# enc2.3.*: Simple tests with a UTF-16BE db.
|
||||
# enc2.4.*: Test that attached databases must have the same text encoding
|
||||
# as the main database.
|
||||
# enc2.5.*: Test the behaviour of the library when a collation sequence is
|
||||
# enc2.5.*: Test the behavior of the library when a collation sequence is
|
||||
# not available for the most desirable text encoding.
|
||||
# enc2.6.*: Similar test for user functions.
|
||||
# enc2.7.*: Test that the VerifyCookie opcode protects against assuming the
|
||||
|
||||
+2
-2
@@ -505,7 +505,7 @@ if {[permutation] != "memsubsys1"} {
|
||||
sqlite3_soft_heap_limit $cmdlinearg(soft-heap-limit)
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# The following tests verify the behaviour of the incremental IO
|
||||
# The following tests verify the behavior of the incremental IO
|
||||
# APIs in the following cases:
|
||||
#
|
||||
# 7.1 A row that containing an open blob is modified.
|
||||
@@ -516,7 +516,7 @@ sqlite3_soft_heap_limit $cmdlinearg(soft-heap-limit)
|
||||
# 7.3 An INCREMENTAL VACUUM moves an overflow page that is part
|
||||
# of an open blob.
|
||||
#
|
||||
# In the first case above, correct behaviour is for all subsequent
|
||||
# In the first case above, correct behavior is for all subsequent
|
||||
# read/write operations on the blob-handle to return SQLITE_ABORT.
|
||||
# More accurately, blob-handles are invalidated whenever the table
|
||||
# they belong to is written to.
|
||||
|
||||
+1
-1
@@ -207,7 +207,7 @@ do_test io-2.5.3 {
|
||||
# Changed 2010-03-27: The size of the database is now stored in
|
||||
# bytes 28..31 and so when a page is added to the database, page 1
|
||||
# is immediately modified and the journal file immediately comes into
|
||||
# existance. To fix this test, the BEGIN is changed into a a
|
||||
# existence. To fix this test, the BEGIN is changed into a a
|
||||
# BEGIN IMMEDIATE and the INSERT is omitted.
|
||||
#
|
||||
do_test io-2.6.1 {
|
||||
|
||||
+1
-1
@@ -842,7 +842,7 @@ do_malloc_test 36 -sqlprep {
|
||||
SELECT test_agg_errmsg16(), group_concat(a) FROM t1
|
||||
}
|
||||
|
||||
# At one point, if an OOM occured immediately after obtaining a shared lock
|
||||
# At one point, if an OOM occurred immediately after obtaining a shared lock
|
||||
# on the database file, the file remained locked. This test case ensures
|
||||
# that bug has been fixed.i
|
||||
if {[db eval {PRAGMA locking_mode}]!="exclusive"} {
|
||||
|
||||
+2
-2
@@ -595,8 +595,8 @@ proc run_test {arglist iRepeat {pcstart 0} {iFailStart 1}} {
|
||||
|
||||
if {$rc != 0 && $nac && !$ac} {
|
||||
# Before [db eval] the auto-commit flag was clear. Now it
|
||||
# is set. Since an error occured we assume this was not a
|
||||
# commit - therefore a rollback occured. Check that the
|
||||
# is set. Since an error occurred we assume this was not a
|
||||
# commit - therefore a rollback occurred. Check that the
|
||||
# rollback-hook was invoked.
|
||||
do_test malloc3-rollback_hook_count.$iterid {
|
||||
set ::rollback_hook_count
|
||||
|
||||
+2
-2
@@ -150,9 +150,9 @@ set sql $zSql
|
||||
# Hit some other kind of error. This is a malfunction.
|
||||
error $msg
|
||||
} else {
|
||||
# No error occured. Check that any SELECT statements in the transaction
|
||||
# No error occurred. Check that any SELECT statements in the transaction
|
||||
# returned "1". Otherwise, the invariant was false, indicating that
|
||||
# some malfunction has occured.
|
||||
# some malfunction has occurred.
|
||||
foreach r $msg { if {$r != 1} { puts "Invariant check failed: $msg" } }
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -421,7 +421,7 @@ do_test subquery-3.5.7 {
|
||||
# and expose bugs to do with re-using statements that have been
|
||||
# passed to sqlite3_reset().
|
||||
#
|
||||
# One problem was that VDBE memory cells were not being initialised
|
||||
# One problem was that VDBE memory cells were not being initialized
|
||||
# to NULL on the second and subsequent executions.
|
||||
#
|
||||
do_test subquery-4.1.1 {
|
||||
|
||||
+1
-1
@@ -150,7 +150,7 @@ do_test temptable-3.4 {
|
||||
# Check for correct name collision processing. A name collision can
|
||||
# occur when process A creates a temporary table T then process B
|
||||
# creates a permanent table also named T. The temp table in process A
|
||||
# hides the existance of the permanent table.
|
||||
# hides the existence of the permanent table.
|
||||
#
|
||||
do_test temptable-4.1 {
|
||||
execsql {
|
||||
|
||||
+3
-3
@@ -123,7 +123,7 @@ if {[info command sqlite_orig]==""} {
|
||||
set res
|
||||
} else {
|
||||
# This command is not opening a new database connection. Pass the
|
||||
# arguments through to the C implemenation as the are.
|
||||
# arguments through to the C implementation as the are.
|
||||
#
|
||||
uplevel 1 sqlite_orig $args
|
||||
}
|
||||
@@ -1037,7 +1037,7 @@ proc ifcapable {expr code {else ""} {elsecode ""}} {
|
||||
# boolean, indicating whether or not the process actually crashed or
|
||||
# reported some other error. The second element in the returned list is the
|
||||
# error message. This is "child process exited abnormally" if the crash
|
||||
# occured.
|
||||
# occurred.
|
||||
#
|
||||
# crashsql -delay CRASHDELAY -file CRASHFILE ?-blocksize BLOCKSIZE? $sql
|
||||
#
|
||||
@@ -1317,7 +1317,7 @@ proc do_ioerr_test {testname args} {
|
||||
}
|
||||
}
|
||||
|
||||
# If an IO error occured, then the checksum of the database should
|
||||
# If an IO error occurred, then the checksum of the database should
|
||||
# be the same as before the script that caused the IO error was run.
|
||||
#
|
||||
if {$::go && $::sqlite_io_error_hardhit && $::ioerropts(-cksum)} {
|
||||
|
||||
+2
-2
@@ -107,7 +107,7 @@ do_test tkt2409-1.2 {
|
||||
integrity_check tkt2409-1.3
|
||||
|
||||
# Check that the transaction was rolled back. Because the INSERT
|
||||
# statement in which the "I/O error" occured did not open a statement
|
||||
# statement in which the "I/O error" occurred did not open a statement
|
||||
# transaction, SQLite had no choice but to roll back the transaction.
|
||||
#
|
||||
do_test tkt2409-1.4 {
|
||||
@@ -175,7 +175,7 @@ do_test tkt2409-3.2 {
|
||||
integrity_check tkt2409-3.3
|
||||
|
||||
# Check that the transaction was rolled back. Because the INSERT
|
||||
# statement in which the "I/O error" occured did not open a statement
|
||||
# statement in which the "I/O error" occurred did not open a statement
|
||||
# transaction, SQLite had no choice but to roll back the transaction.
|
||||
#
|
||||
do_test tkt2409-3.4 {
|
||||
|
||||
Reference in New Issue
Block a user