mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add the legacy_file_format pragma. (CVS 2922)
FossilOrigin-Name: b2dbd1a5b7f5a70049f25755f07b9c4c5116549b
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is descending indices.
|
||||
#
|
||||
# $Id: descidx1.test,v 1.3 2005/12/29 19:23:07 drh Exp $
|
||||
# $Id: descidx1.test,v 1.4 2006/01/12 01:56:44 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@@ -287,4 +287,25 @@ do_test descidx1-5.9 {
|
||||
}
|
||||
} {110 111 100 101 010 011 000 001 sort}
|
||||
|
||||
# Test the legacy_file_format pragma here because we have access to
|
||||
# the get_file_format command.
|
||||
#
|
||||
do_test descidx1-6.1 {
|
||||
db close
|
||||
file delete -force test.db test.db-journal
|
||||
sqlite3 db test.db
|
||||
execsql {PRAGMA legacy_file_format}
|
||||
} {0}
|
||||
do_test descidx1-6.2 {
|
||||
execsql {PRAGMA legacy_file_format=YES}
|
||||
execsql {PRAGMA legacy_file_format}
|
||||
} {1}
|
||||
do_test descidx1-6.3 {
|
||||
execsql {
|
||||
CREATE TABLE t1(a,b,c);
|
||||
}
|
||||
get_file_format
|
||||
} {1}
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user