-C Fix\sa\s#ifdef\sin\sutil.c.\s(CVS\s2369)
-D 2005-03-10T12:35:46
+C Disable\sthe\salter2\stests\sif\sthere\sis\sa\scodec\scompiled\sinto\sthe\slibrary.\s(CVS\s2370)
+D 2005-03-10T12:52:47
F Makefile.in 76443a83549d1539105e12d13bd0054a05ab2214
F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1
F tclinstaller.tcl 046e3624671962dc50f0481d7c25b38ef803eb42
F test/all.test 7f0988442ab811dfa41793b5b550f5828ce316f3
F test/alter.test 3a20ce14c3989f7e2e75da50797065c2e56f838b
-F test/alter2.test 10277f9d5290951ab389c2fc92f3b1a78bbfe2af
+F test/alter2.test 60ba0a7057dc71ad630a1cc7c487104346849d50
F test/attach.test 3c951c822047854fd6c2f1f6ad7c0ad82c7aa90b
F test/attach2.test 6f3a3a3a7f5be40388dd4d805e0e0712718dca9d
F test/attach3.test c05c70b933afbde0901dab9da3e66ee842c09f38
F www/vdbe.tcl 095f106d93875c94b47367384ebc870517431618
F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0
F www/whentouse.tcl 3e522a06ad41992023c80ca29a048ae2331ca5bd
-P 64c4c717d35c8fce9b4be073196c507f6d471188
-R 376a03a042ddb758e92aa5072636722f
+P f426c625c4c3de626b5f5f8b5a6343a7ec3b16e9
+R 4d34e3a6fbc8b940b8a716efa5ae8b3b
U drh
-Z 1a38fbee75c00acc8623c5176ebc1fe3
+Z 05bd61621ca7830d39b52ce16b018ff9
-f426c625c4c3de626b5f5f8b5a6343a7ec3b16e9
\ No newline at end of file
+06a48da67b142e92624cdfd46947bd4ccc6842b7
\ No newline at end of file
# file format change that may be used in the future to implement
# "ALTER TABLE ... ADD COLUMN".
#
-# $Id: alter2.test,v 1.3 2005/03/09 12:26:51 danielk1977 Exp $
+# $Id: alter2.test,v 1.4 2005/03/10 12:52:47 drh Exp $
#
set testdir [file dirname $argv0]
# We have to have pragmas in order to do this test
ifcapable {!pragma} return
+# These tests do not work if there is a codec. The
+# btree_open command does not know how to handle codecs.
+#
+if {[catch {sqlite3 -has_codec} r] || $r} return
+
# The file format change affects the way row-records stored in tables (but
# not indices) are interpreted. Before version 3.1.3, a row-record for a
# table with N columns was guaranteed to contain exactly N fields. As
#
proc alter_table {tbl sql {file_format 2}} {
sqlite3 dbat test.db
+puts one
dbat eval {
PRAGMA writable_schema = 1;
UPDATE sqlite_master SET sql = $sql WHERE name = $tbl AND type = 'table';
PRAGMA writable_schema = 0;
}
+puts two
dbat close
+puts three
set_file_format 2
+puts four
}
#-----------------------------------------------------------------------
# ALTER TABLE abc ADD COLUMN c;
alter_table abc {CREATE TABLE abc(a, b, c);}
} {}
+exit
do_test alter2-1.3 {
execsql {
SELECT * FROM abc;
} {3}
finish_test
-