SQLite

Check-in [98a36f4cf1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add simple tests for "PRAGMA freelist_format".
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | server-process-edition
Files: files | file ages | folders
SHA3-256: 98a36f4cf127ceec423952a3d80d8d22163f128a5e6290cf6144c59029332944
User & Date: dan 2017-07-14 08:15:16.028
Context
2017-07-19
18:54
Merge latest trunk changes with this branch. (check-in: be0df0a65f user: dan tags: server-process-edition)
2017-07-14
08:15
Add simple tests for "PRAGMA freelist_format". (check-in: 98a36f4cf1 user: dan tags: server-process-edition)
2017-07-13
21:06
Make the freelist format a separate feature from the page-level locking. Freelist format is now configure using "PRAGMA freelist_format". (check-in: dcc407972a user: dan tags: server-process-edition)
Changes
Unified Diff Ignore Whitespace Patch
Added test/server5.test.






























































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 2017 July 09
#
# The author disclaims copyright to this source code.  In place of
# a legal notice, here is a blessing:
#
#    May you do good and not evil.
#    May you find forgiveness for yourself and forgive others.
#    May you share freely, never taking more than you give.
#
#***********************************************************************
# This file implements regression tests for SQLite library.  
#
# The focus of this script is testing the server mode of SQLite.
# Specifically, that "BEGIN READONLY" starts a read-only MVCC
# transaction.
#


set testdir [file dirname $argv0]
source $testdir/tester.tcl
set testprefix server5

do_execsql_test 1.0 {
  PRAGMA freelist_format;
} {1}

explain_i {
  PRAGMA freelist_format = 2;
}

do_execsql_test 1.1 {
  PRAGMA freelist_format = 2;
} {2}

do_execsql_test 1.2 {
  PRAGMA freelist_format;
} {2}

do_execsql_test 1.3 {
  PRAGMA freelist_format = 1;
} {1}

do_execsql_test 1.4 {
  PRAGMA freelist_format;
} {1}

do_execsql_test 1.5 {
  CREATE TABLE t1(x);
  PRAGMA freelist_format = 2;
} {2}

do_execsql_test 1.6 {
  CREATE TABLE t2(y);
}

do_execsql_test 1.6 {
  PRAGMA freelist_format = 1;
} {2}



finish_test