1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix for #2281. This was a problem with the test-case only. (CVS 3795)

FossilOrigin-Name: c036db6251ca4671fc3388a4f37955c18adeca1d
This commit is contained in:
danielk1977
2007-04-02 12:29:01 +00:00
parent ead8e3f45e
commit cd1aa9000f
4 changed files with 20 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
# file format change that may be used in the future to implement
# "ALTER TABLE ... ADD COLUMN".
#
# $Id: alter2.test,v 1.6 2007/01/04 14:36:02 drh Exp $
# $Id: alter2.test,v 1.7 2007/04/02 12:29:01 danielk1977 Exp $
#
set testdir [file dirname $argv0]
@@ -258,6 +258,7 @@ do_test alter2-4.5 {
# Check that executing VACUUM on a file with file-format version 2
# resets the file format to 1.
#
set default_file_format [expr $sqlite_default_file_format==4 ? 4 : 1]
do_test alter2-5.1 {
set_file_format 2
get_file_format
@@ -269,7 +270,7 @@ do_test alter2-5.2 {
} {}
do_test alter2-5.3 {
get_file_format
} {1}
} $default_file_format
#---------------------------------------------------------------------
# Test that when a database with file-format 2 is opened, new
@@ -290,7 +291,7 @@ do_test alter2-6.2 {
CREATE TABLE aux.t1(a, b);
}
get_file_format test2.db
} {1}
} $default_file_format
do_test alter2-6.3 {
execsql {
CREATE TABLE t1(a, b);