Remove the dependency on the direct btree interface from as many test

scripts as is practical.  Fix a bug in the output limiter of the
integrity_check pragma that came up while making this change. (CVS 4880)

FossilOrigin-Name: 24e769972eb6052b82dc94d20444c186a213e104
This commit is contained in:
drh
2008-03-19 00:21:30 +00:00
parent aa28e1478a
commit bb8a279e11
13 changed files with 167 additions and 209 deletions
+2 -5
View File
@@ -13,7 +13,7 @@
# file format change that may be used in the future to implement
# "ALTER TABLE ... ADD COLUMN".
#
# $Id: alter3.test,v 1.10 2007/10/09 08:29:32 danielk1977 Exp $
# $Id: alter3.test,v 1.11 2008/03/19 00:21:31 drh Exp $
#
set testdir [file dirname $argv0]
@@ -50,10 +50,7 @@ if {[catch {sqlite3 -has_codec} r] || $r} {
# This procedure returns the value of the file-format in file 'test.db'.
#
proc get_file_format {{fname test.db}} {
set bt [btree_open $fname 10 0]
set meta [btree_get_meta $bt]
btree_close $bt
lindex $meta 2
return [hexio_get_int [hexio_read $fname 44 4]]
}
do_test alter3-1.1 {