1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Change the record format to include an extra varint at the beginning to record the number of bytes in the header. (CVS 1478)

FossilOrigin-Name: 0c4d138807f367d75b3fb5b2dadf206df725659f
This commit is contained in:
drh
2004-05-27 19:59:32 +00:00
parent 5f3b4ab53c
commit d3194f5a4a
6 changed files with 166 additions and 191 deletions

View File

@ -12,7 +12,7 @@
# it tests that the different storage classes (integer, real, text etc.)
# all work correctly.
#
# $Id: types.test,v 1.6 2004/05/24 12:55:55 danielk1977 Exp $
# $Id: types.test,v 1.7 2004/05/27 19:59:33 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -199,7 +199,7 @@ do_test types-2.1.8 {
do_test types-2.1.9 {
set root [db eval {select rootpage from sqlite_master where name = 't1'}]
record_sizes $root
} {2 2 2 3 3 5 5 9 9}
} {3 3 3 4 4 6 6 10 10}
# Insert some reals. These should be 10 byte records.
do_test types-2.2.1 {
@ -220,7 +220,7 @@ do_test types-2.2.2 {
do_test types-2.2.3 {
set root [db eval {select rootpage from sqlite_master where name = 't2'}]
record_sizes $root
} {9 9 9}
} {10 10 10}
# Insert a NULL. This should be a two byte record.
do_test types-2.3.1 {
@ -239,7 +239,7 @@ do_test types-2.3.2 {
do_test types-2.3.3 {
set root [db eval {select rootpage from sqlite_master where name = 't3'}]
record_sizes $root
} {1}
} {2}
# Insert a couple of strings.
do_test types-2.4.1 {
@ -264,7 +264,7 @@ do_test types-2.4.2 {
do_test types-2.4.3 {
set root [db eval {select rootpage from sqlite_master where name = 't4'}]
record_sizes $root
} {11 502 500003}
} {12 503 500004}
do_test types-2.5.1 {
execsql {