diff options
author | drh <drh@noemail.net> | 2005-12-29 19:23:06 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2005-12-29 19:23:06 +0000 |
commit | d946db0064af292fb8689b9604481d39e79dd418 (patch) | |
tree | 6f7e909ae93fea40a74ed435eaaac713d914aab8 /src/sqliteInt.h | |
parent | aa81608eb09adb9d328ce5cf24d98e02dd91b09d (diff) | |
download | sqlite-d946db0064af292fb8689b9604481d39e79dd418.tar.gz sqlite-d946db0064af292fb8689b9604481d39e79dd418.zip |
Add serial-types 8 and 9 for integer constants of 0 and 1 that use zero
bytes of storage. Make the default file format 4. Add the
SQLITE_DEFAULT_FILE_FORMAT compile-time option to lower the default
file format number so that newly created databases can be read and
written by older versions of SQLite. (CVS 2845)
FossilOrigin-Name: ae301db8a61a74bc72f67f5766811d89a3b3ec72
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index b5ff1c207..2737c1d16 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.443 2005/12/29 01:11:37 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.444 2005/12/29 19:23:07 drh Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ @@ -141,6 +141,17 @@ #define SQLITE_MAX_VARIABLE_NUMBER 999 /* +** The "file format" number is an integer that is incremented whenever +** the VDBE-level file format changes. The following macros define the +** the default file format for new databases and the maximum file format +** that the library can read. +*/ +#define SQLITE_MAX_FILE_FORMAT 4 +#ifndef SQLITE_DEFAULT_FILE_FORMAT +# define SQLITE_DEFAULT_FILE_FORMAT 4 +#endif + +/* ** Provide a default value for TEMP_STORE in case it is not specified ** on the command-line */ @@ -360,7 +371,6 @@ struct Db { u8 inTrans; /* 0: not writable. 1: Transaction. 2: Checkpoint */ u8 safety_level; /* How aggressive at synching data to disk */ u8 file_format; /* Schema format version for this file */ - u8 descIndex; /* True if any index uses the DESC attribute */ int cache_size; /* Number of pages to use in the cache */ Table *pSeqTab; /* The sqlite_sequence table used by AUTOINCREMENT */ void *pAux; /* Auxiliary data. Usually NULL */ |