Skip to content

Commit d748217

Browse files
committed
Merge pull request #541 from gaudryc/update_sqlite_3_11_1
Update SQLite to 3.11.1
2 parents 7d2456d + 5cce838 commit d748217

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

History.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Version 3.4834 (March 2nd 2016)
9595
- Fixed: Fix abandoned connections not removed because the method connection_manager::check_timeout is never called [Security/Performance].
9696
- Updated: OpenZWave, configuration files
9797
- Updated: SQLite3 v3.11.0.
98+
- Updated: SQLite3 v3.11.1.
9899

99100
Version 2.3530 (November 1th 2015)
100101
- Implemented: Degree Days in Temperature report

sqlite/sqlite3.c

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
** This file is an amalgamation of many separate C source files from SQLite
3-
** version 3.11.0. By combining all the individual C code files into this
3+
** version 3.11.1. 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
@@ -328,9 +328,9 @@ extern "C" {
328328
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
329329
** [sqlite_version()] and [sqlite_source_id()].
330330
*/
331-
#define SQLITE_VERSION "3.11.0"
332-
#define SQLITE_VERSION_NUMBER 3011000
333-
#define SQLITE_SOURCE_ID "2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f"
331+
#define SQLITE_VERSION "3.11.1"
332+
#define SQLITE_VERSION_NUMBER 3011001
333+
#define SQLITE_SOURCE_ID "2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7"
334334

335335
/*
336336
** CAPI3REF: Run-Time Library Version Numbers
@@ -176167,6 +176167,7 @@ static Fts5Data *fts5DataRead(Fts5Index *p, i64 iRowid){
176167176167
return pRet;
176168176168
}
176169176169

176170+
176170176171
/*
176171176172
** Release a reference to data record returned by an earlier call to
176172176173
** fts5DataRead().
@@ -177623,6 +177624,10 @@ static void fts5LeafSeek(
177623177624
iPgidx = szLeaf;
177624177625
iPgidx += fts5GetVarint32(&a[iPgidx], iTermOff);
177625177626
iOff = iTermOff;
177627+
if( iOff>n ){
177628+
p->rc = FTS5_CORRUPT;
177629+
return;
177630+
}
177626177631

177627177632
while( 1 ){
177628177633

@@ -179968,7 +179973,10 @@ static int sqlite3Fts5IndexOptimize(Fts5Index *p){
179968179973
if( pLvl->aSeg ){
179969179974
int iLvl, iSeg;
179970179975
int iSegOut = 0;
179971-
for(iLvl=0; iLvl<pStruct->nLevel; iLvl++){
179976+
/* Iterate through all segments, from oldest to newest. Add them to
179977+
** the new Fts5Level object so that pLvl->aSeg[0] is the oldest
179978+
** segment in the data structure. */
179979+
for(iLvl=pStruct->nLevel-1; iLvl>=0; iLvl--){
179972179980
for(iSeg=0; iSeg<pStruct->aLevel[iLvl].nSeg; iSeg++){
179973179981
pLvl->aSeg[iSegOut] = pStruct->aLevel[iLvl].aSeg[iSeg];
179974179982
iSegOut++;
@@ -184355,7 +184363,7 @@ static void fts5SourceIdFunc(
184355184363
){
184356184364
assert( nArg==0 );
184357184365
UNUSED_PARAM2(nArg, apUnused);
184358-
sqlite3_result_text(pCtx, "fts5: 2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f", -1, SQLITE_TRANSIENT);
184366+
sqlite3_result_text(pCtx, "fts5: 2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7", -1, SQLITE_TRANSIENT);
184359184367
}
184360184368

184361184369
static int fts5Init(sqlite3 *db){
@@ -184416,6 +184424,17 @@ static int fts5Init(sqlite3 *db){
184416184424
);
184417184425
}
184418184426
}
184427+
184428+
/* If SQLITE_FTS5_ENABLE_TEST_MI is defined, assume that the file
184429+
** fts5_test_mi.c is compiled and linked into the executable. And call
184430+
** its entry point to enable the matchinfo() demo. */
184431+
#ifdef SQLITE_FTS5_ENABLE_TEST_MI
184432+
if( rc==SQLITE_OK ){
184433+
extern int sqlite3Fts5TestRegisterMatchinfo(sqlite3*);
184434+
rc = sqlite3Fts5TestRegisterMatchinfo(db);
184435+
}
184436+
#endif
184437+
184419184438
return rc;
184420184439
}
184421184440

sqlite/sqlite3.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ extern "C" {
111111
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
112112
** [sqlite_version()] and [sqlite_source_id()].
113113
*/
114-
#define SQLITE_VERSION "3.11.0"
115-
#define SQLITE_VERSION_NUMBER 3011000
116-
#define SQLITE_SOURCE_ID "2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f"
114+
#define SQLITE_VERSION "3.11.1"
115+
#define SQLITE_VERSION_NUMBER 3011001
116+
#define SQLITE_SOURCE_ID "2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7"
117117

118118
/*
119119
** CAPI3REF: Run-Time Library Version Numbers

0 commit comments

Comments
 (0)