Minor changes to test cases to account for the fact that databases with read/write versions of 2 are now understood.
FossilOrigin-Name: 278ed41e1d4bbff9544cb2cf4cf52dbbcf0c17df
This commit is contained in:
+3
-3
@@ -29,7 +29,7 @@ do_test rdonly-1.1 {
|
||||
}
|
||||
} {1}
|
||||
|
||||
# Changes the write version from 1 to 2. Verify that the database
|
||||
# Changes the write version from 1 to 3. Verify that the database
|
||||
# can be read but not written.
|
||||
#
|
||||
do_test rdonly-1.2 {
|
||||
@@ -37,7 +37,7 @@ do_test rdonly-1.2 {
|
||||
hexio_get_int [hexio_read test.db 18 1]
|
||||
} 1
|
||||
do_test rdonly-1.3 {
|
||||
hexio_write test.db 18 02
|
||||
hexio_write test.db 18 03
|
||||
sqlite3 db test.db
|
||||
execsql {
|
||||
SELECT * FROM t1;
|
||||
@@ -68,7 +68,7 @@ do_test rdonly-1.5 {
|
||||
# the database is read-only until after it is locked.
|
||||
#
|
||||
do_test rdonly-1.6 {
|
||||
hexio_write test.db 18 02 ; # write-version
|
||||
hexio_write test.db 18 03 ; # write-version
|
||||
hexio_write test.db 24 11223344 ; # change-counter
|
||||
catchsql {
|
||||
INSERT INTO t1 VALUES(2);
|
||||
|
||||
Reference in New Issue
Block a user