Skip to content

Commit f33c976

Browse files
committed
Upgrade sqlite amalgamation to latest 3.10.2
1 parent 5f58255 commit f33c976

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

code/sqlite3-binding.c

Lines changed: 12 additions & 8 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.10.1. By combining all the individual C code files into this
3+
** version 3.10.2. 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
@@ -325,9 +325,9 @@ extern "C" {
325325
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
326326
** [sqlite_version()] and [sqlite_source_id()].
327327
*/
328-
#define SQLITE_VERSION "3.10.1"
329-
#define SQLITE_VERSION_NUMBER 3010001
330-
#define SQLITE_SOURCE_ID "2016-01-13 21:41:56 254419c36766225ca542ae873ed38255e3fb8588"
328+
#define SQLITE_VERSION "3.10.2"
329+
#define SQLITE_VERSION_NUMBER 3010002
330+
#define SQLITE_SOURCE_ID "2016-01-20 15:27:19 17efb4209f97fb4971656086b138599a91a75ff9"
331331

332332
/*
333333
** CAPI3REF: Run-Time Library Version Numbers
@@ -49045,7 +49045,7 @@ SQLITE_PRIVATE int sqlite3PagerBegin(Pager *pPager, int exFlag, int subjInMemory
4904549045
if( rc!=SQLITE_OK ){
4904649046
return rc;
4904749047
}
49048-
sqlite3WalExclusiveMode(pPager->pWal, 1);
49048+
(void)sqlite3WalExclusiveMode(pPager->pWal, 1);
4904949049
}
4905049050

4905149051
/* Grab the write lock on the log file. If successful, upgrade to
@@ -50115,7 +50115,11 @@ SQLITE_PRIVATE sqlite3_file *sqlite3PagerFile(Pager *pPager){
5011550115
** This will be either the rollback journal or the WAL file.
5011650116
*/
5011750117
SQLITE_PRIVATE sqlite3_file *sqlite3PagerJrnlFile(Pager *pPager){
50118+
#if SQLITE_OMIT_WAL
50119+
return pPager->jfd;
50120+
#else
5011850121
return pPager->pWal ? sqlite3WalFile(pPager->pWal) : pPager->jfd;
50122+
#endif
5011950123
}
5012050124

5012150125
/*
@@ -100279,7 +100283,7 @@ static int patternCompare(
100279100283
}
100280100284
c2 = Utf8Read(zString);
100281100285
if( c==c2 ) continue;
100282-
if( noCase && sqlite3Tolower(c)==sqlite3Tolower(c2) ){
100286+
if( noCase && c<0x80 && c2<0x80 && sqlite3Tolower(c)==sqlite3Tolower(c2) ){
100283100287
continue;
100284100288
}
100285100289
if( c==matchOne && zPattern!=zEscaped && c2!=0 ) continue;
@@ -135026,7 +135030,6 @@ static int openDatabase(
135026135030
sqlite3_wal_autocheckpoint(db, SQLITE_DEFAULT_WAL_AUTOCHECKPOINT);
135027135031

135028135032
opendb_out:
135029-
sqlite3_free(zOpen);
135030135033
if( db ){
135031135034
assert( db->mutex!=0 || isThreadsafe==0
135032135035
|| sqlite3GlobalConfig.bFullMutex==0 );
@@ -135063,6 +135066,7 @@ static int openDatabase(
135063135066
}
135064135067
}
135065135068
#endif
135069+
sqlite3_free(zOpen);
135066135070
return rc & 0xff;
135067135071
}
135068135072

@@ -182280,7 +182284,7 @@ static void fts5SourceIdFunc(
182280182284
sqlite3_value **apVal /* Function arguments */
182281182285
){
182282182286
assert( nArg==0 );
182283-
sqlite3_result_text(pCtx, "fts5: 2016-01-13 21:41:56 254419c36766225ca542ae873ed38255e3fb8588", -1, SQLITE_TRANSIENT);
182287+
sqlite3_result_text(pCtx, "fts5: 2016-01-20 15:27:19 17efb4209f97fb4971656086b138599a91a75ff9", -1, SQLITE_TRANSIENT);
182284182288
}
182285182289

182286182290
static int fts5Init(sqlite3 *db){

code/sqlite3-binding.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.10.1"
115-
#define SQLITE_VERSION_NUMBER 3010001
116-
#define SQLITE_SOURCE_ID "2016-01-13 21:41:56 254419c36766225ca542ae873ed38255e3fb8588"
114+
#define SQLITE_VERSION "3.10.2"
115+
#define SQLITE_VERSION_NUMBER 3010002
116+
#define SQLITE_SOURCE_ID "2016-01-20 15:27:19 17efb4209f97fb4971656086b138599a91a75ff9"
117117

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

0 commit comments

Comments
 (0)