Fossil SCM

Update the built-in SQLite to version 3.19.3.

drh 2017-06-08 15:03 trunk
Commit 5a6f946723bad14eb4f6279d1ab1c80c01341f8b9f2c36e2277027535fee2b80
2 files changed +13 -7 +3 -3
+13 -7
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -1,8 +1,8 @@
11
/******************************************************************************
22
** This file is an amalgamation of many separate C source files from SQLite
3
-** version 3.19.2. By combining all the individual C code files into this
3
+** version 3.19.3. By combining all the individual C code files into this
44
** single large file, the entire code can be compiled as a single translation
55
** unit. This allows many compilers to do optimizations that would not be
66
** possible if the files were compiled separately. Performance improvements
77
** of 5% or more are commonly seen when SQLite is compiled as a single
88
** translation unit.
@@ -396,13 +396,13 @@
396396
**
397397
** See also: [sqlite3_libversion()],
398398
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
399399
** [sqlite_version()] and [sqlite_source_id()].
400400
*/
401
-#define SQLITE_VERSION "3.19.2"
402
-#define SQLITE_VERSION_NUMBER 3019002
403
-#define SQLITE_SOURCE_ID "2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9"
401
+#define SQLITE_VERSION "3.19.3"
402
+#define SQLITE_VERSION_NUMBER 3019003
403
+#define SQLITE_SOURCE_ID "2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b"
404404
405405
/*
406406
** CAPI3REF: Run-Time Library Version Numbers
407407
** KEYWORDS: sqlite3_version sqlite3_sourceid
408408
**
@@ -67206,16 +67206,22 @@
6720667206
oldCell = findCell(pPage, idx);
6720767207
if( !pPage->leaf ){
6720867208
memcpy(newCell, oldCell, 4);
6720967209
}
6721067210
rc = clearCell(pPage, oldCell, &info);
67211
- if( info.nSize==szNew && info.nLocal==info.nPayload ){
67211
+ if( info.nSize==szNew && info.nLocal==info.nPayload
67212
+ && (!ISAUTOVACUUM || szNew<pPage->minLocal)
67213
+ ){
6721267214
/* Overwrite the old cell with the new if they are the same size.
6721367215
** We could also try to do this if the old cell is smaller, then add
6721467216
** the leftover space to the free list. But experiments show that
6721567217
** doing that is no faster then skipping this optimization and just
67216
- ** calling dropCell() and insertCell(). */
67218
+ ** calling dropCell() and insertCell().
67219
+ **
67220
+ ** This optimization cannot be used on an autovacuum database if the
67221
+ ** new entry uses overflow pages, as the insertCell() call below is
67222
+ ** necessary to add the PTRMAP_OVERFLOW1 pointer-map entry. */
6721767223
assert( rc==SQLITE_OK ); /* clearCell never fails when nLocal==nPayload */
6721867224
if( oldCell+szNew > pPage->aDataEnd ) return SQLITE_CORRUPT_BKPT;
6721967225
memcpy(oldCell, newCell, szNew);
6722067226
return SQLITE_OK;
6722167227
}
@@ -199054,11 +199060,11 @@
199054199060
int nArg, /* Number of args */
199055199061
sqlite3_value **apUnused /* Function arguments */
199056199062
){
199057199063
assert( nArg==0 );
199058199064
UNUSED_PARAM2(nArg, apUnused);
199059
- sqlite3_result_text(pCtx, "fts5: 2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9", -1, SQLITE_TRANSIENT);
199065
+ sqlite3_result_text(pCtx, "fts5: 2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b", -1, SQLITE_TRANSIENT);
199060199066
}
199061199067
199062199068
static int fts5Init(sqlite3 *db){
199063199069
static const sqlite3_module fts5Mod = {
199064199070
/* iVersion */ 2,
199065199071
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -1,8 +1,8 @@
1 /******************************************************************************
2 ** This file is an amalgamation of many separate C source files from SQLite
3 ** version 3.19.2. By combining all the individual C code files into this
4 ** single large file, the entire code can be compiled as a single translation
5 ** unit. This allows many compilers to do optimizations that would not be
6 ** possible if the files were compiled separately. Performance improvements
7 ** of 5% or more are commonly seen when SQLite is compiled as a single
8 ** translation unit.
@@ -396,13 +396,13 @@
396 **
397 ** See also: [sqlite3_libversion()],
398 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
399 ** [sqlite_version()] and [sqlite_source_id()].
400 */
401 #define SQLITE_VERSION "3.19.2"
402 #define SQLITE_VERSION_NUMBER 3019002
403 #define SQLITE_SOURCE_ID "2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9"
404
405 /*
406 ** CAPI3REF: Run-Time Library Version Numbers
407 ** KEYWORDS: sqlite3_version sqlite3_sourceid
408 **
@@ -67206,16 +67206,22 @@
67206 oldCell = findCell(pPage, idx);
67207 if( !pPage->leaf ){
67208 memcpy(newCell, oldCell, 4);
67209 }
67210 rc = clearCell(pPage, oldCell, &info);
67211 if( info.nSize==szNew && info.nLocal==info.nPayload ){
 
 
67212 /* Overwrite the old cell with the new if they are the same size.
67213 ** We could also try to do this if the old cell is smaller, then add
67214 ** the leftover space to the free list. But experiments show that
67215 ** doing that is no faster then skipping this optimization and just
67216 ** calling dropCell() and insertCell(). */
 
 
 
 
67217 assert( rc==SQLITE_OK ); /* clearCell never fails when nLocal==nPayload */
67218 if( oldCell+szNew > pPage->aDataEnd ) return SQLITE_CORRUPT_BKPT;
67219 memcpy(oldCell, newCell, szNew);
67220 return SQLITE_OK;
67221 }
@@ -199054,11 +199060,11 @@
199054 int nArg, /* Number of args */
199055 sqlite3_value **apUnused /* Function arguments */
199056 ){
199057 assert( nArg==0 );
199058 UNUSED_PARAM2(nArg, apUnused);
199059 sqlite3_result_text(pCtx, "fts5: 2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9", -1, SQLITE_TRANSIENT);
199060 }
199061
199062 static int fts5Init(sqlite3 *db){
199063 static const sqlite3_module fts5Mod = {
199064 /* iVersion */ 2,
199065
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -1,8 +1,8 @@
1 /******************************************************************************
2 ** This file is an amalgamation of many separate C source files from SQLite
3 ** version 3.19.3. By combining all the individual C code files into this
4 ** single large file, the entire code can be compiled as a single translation
5 ** unit. This allows many compilers to do optimizations that would not be
6 ** possible if the files were compiled separately. Performance improvements
7 ** of 5% or more are commonly seen when SQLite is compiled as a single
8 ** translation unit.
@@ -396,13 +396,13 @@
396 **
397 ** See also: [sqlite3_libversion()],
398 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
399 ** [sqlite_version()] and [sqlite_source_id()].
400 */
401 #define SQLITE_VERSION "3.19.3"
402 #define SQLITE_VERSION_NUMBER 3019003
403 #define SQLITE_SOURCE_ID "2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b"
404
405 /*
406 ** CAPI3REF: Run-Time Library Version Numbers
407 ** KEYWORDS: sqlite3_version sqlite3_sourceid
408 **
@@ -67206,16 +67206,22 @@
67206 oldCell = findCell(pPage, idx);
67207 if( !pPage->leaf ){
67208 memcpy(newCell, oldCell, 4);
67209 }
67210 rc = clearCell(pPage, oldCell, &info);
67211 if( info.nSize==szNew && info.nLocal==info.nPayload
67212 && (!ISAUTOVACUUM || szNew<pPage->minLocal)
67213 ){
67214 /* Overwrite the old cell with the new if they are the same size.
67215 ** We could also try to do this if the old cell is smaller, then add
67216 ** the leftover space to the free list. But experiments show that
67217 ** doing that is no faster then skipping this optimization and just
67218 ** calling dropCell() and insertCell().
67219 **
67220 ** This optimization cannot be used on an autovacuum database if the
67221 ** new entry uses overflow pages, as the insertCell() call below is
67222 ** necessary to add the PTRMAP_OVERFLOW1 pointer-map entry. */
67223 assert( rc==SQLITE_OK ); /* clearCell never fails when nLocal==nPayload */
67224 if( oldCell+szNew > pPage->aDataEnd ) return SQLITE_CORRUPT_BKPT;
67225 memcpy(oldCell, newCell, szNew);
67226 return SQLITE_OK;
67227 }
@@ -199054,11 +199060,11 @@
199060 int nArg, /* Number of args */
199061 sqlite3_value **apUnused /* Function arguments */
199062 ){
199063 assert( nArg==0 );
199064 UNUSED_PARAM2(nArg, apUnused);
199065 sqlite3_result_text(pCtx, "fts5: 2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b", -1, SQLITE_TRANSIENT);
199066 }
199067
199068 static int fts5Init(sqlite3 *db){
199069 static const sqlite3_module fts5Mod = {
199070 /* iVersion */ 2,
199071
+3 -3
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -119,13 +119,13 @@
119119
**
120120
** See also: [sqlite3_libversion()],
121121
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
122122
** [sqlite_version()] and [sqlite_source_id()].
123123
*/
124
-#define SQLITE_VERSION "3.19.2"
125
-#define SQLITE_VERSION_NUMBER 3019002
126
-#define SQLITE_SOURCE_ID "2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9"
124
+#define SQLITE_VERSION "3.19.3"
125
+#define SQLITE_VERSION_NUMBER 3019003
126
+#define SQLITE_SOURCE_ID "2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b"
127127
128128
/*
129129
** CAPI3REF: Run-Time Library Version Numbers
130130
** KEYWORDS: sqlite3_version sqlite3_sourceid
131131
**
132132
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -119,13 +119,13 @@
119 **
120 ** See also: [sqlite3_libversion()],
121 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
122 ** [sqlite_version()] and [sqlite_source_id()].
123 */
124 #define SQLITE_VERSION "3.19.2"
125 #define SQLITE_VERSION_NUMBER 3019002
126 #define SQLITE_SOURCE_ID "2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9"
127
128 /*
129 ** CAPI3REF: Run-Time Library Version Numbers
130 ** KEYWORDS: sqlite3_version sqlite3_sourceid
131 **
132
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -119,13 +119,13 @@
119 **
120 ** See also: [sqlite3_libversion()],
121 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
122 ** [sqlite_version()] and [sqlite_source_id()].
123 */
124 #define SQLITE_VERSION "3.19.3"
125 #define SQLITE_VERSION_NUMBER 3019003
126 #define SQLITE_SOURCE_ID "2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b"
127
128 /*
129 ** CAPI3REF: Run-Time Library Version Numbers
130 ** KEYWORDS: sqlite3_version sqlite3_sourceid
131 **
132

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button