Fossil SCM

Update the built-in SQLite to the latest trunk version to fix a harmless compiler warning that comes up on newer Macs.

drh 2015-12-24 14:57 trunk
Commit 44c147b078acc406a575d097328a6ba1ad668590
2 files changed +20 -18 +1 -1
+20 -18
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -325,11 +325,11 @@
325325
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
326326
** [sqlite_version()] and [sqlite_source_id()].
327327
*/
328328
#define SQLITE_VERSION "3.10.0"
329329
#define SQLITE_VERSION_NUMBER 3010000
330
-#define SQLITE_SOURCE_ID "2015-12-23 10:54:48 b910a3d53769689d9212a06f974ccce54844bbe4"
330
+#define SQLITE_SOURCE_ID "2015-12-24 14:53:27 7c7b7f26306b6aa6ff35b871ad756f43f5db9838"
331331
332332
/*
333333
** CAPI3REF: Run-Time Library Version Numbers
334334
** KEYWORDS: sqlite3_version, sqlite3_sourceid
335335
**
@@ -9901,15 +9901,10 @@
99019901
** For best performance, an attempt is made to guess at the byte-order
99029902
** using C-preprocessor macros. If that is unsuccessful, or if
99039903
** -DSQLITE_RUNTIME_BYTEORDER=1 is set, then byte-order is determined
99049904
** at run-time.
99059905
*/
9906
-#ifdef SQLITE_AMALGAMATION
9907
-SQLITE_PRIVATE const int sqlite3one = 1;
9908
-#else
9909
-SQLITE_PRIVATE const int sqlite3one;
9910
-#endif
99119906
#if (defined(i386) || defined(__i386__) || defined(_M_IX86) || \
99129907
defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || \
99139908
defined(_M_AMD64) || defined(_M_ARM) || defined(__x86) || \
99149909
defined(__arm__)) && !defined(SQLITE_RUNTIME_BYTEORDER)
99159910
# define SQLITE_BYTEORDER 1234
@@ -9923,10 +9918,15 @@
99239918
# define SQLITE_BIGENDIAN 1
99249919
# define SQLITE_LITTLEENDIAN 0
99259920
# define SQLITE_UTF16NATIVE SQLITE_UTF16BE
99269921
#endif
99279922
#if !defined(SQLITE_BYTEORDER)
9923
+# ifdef SQLITE_AMALGAMATION
9924
+ const int sqlite3one = 1;
9925
+# else
9926
+ extern const int sqlite3one;
9927
+# endif
99289928
# define SQLITE_BYTEORDER 0 /* 0 means "unknown at compile-time" */
99299929
# define SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0)
99309930
# define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1)
99319931
# define SQLITE_UTF16NATIVE (SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE)
99329932
#endif
@@ -20655,10 +20655,12 @@
2065520655
int trace; /* True to trace changes */
2065620656
#endif
2065720657
};
2065820658
#if SQLITE_MUTEX_NREF
2065920659
#define SQLITE3_MUTEX_INITIALIZER {PTHREAD_MUTEX_INITIALIZER,0,0,(pthread_t)0,0}
20660
+#elif defined(SQLITE_ENABLE_API_ARMOR)
20661
+#define SQLITE3_MUTEX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER, 0 }
2066020662
#else
2066120663
#define SQLITE3_MUTEX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER }
2066220664
#endif
2066320665
2066420666
/*
@@ -24490,17 +24492,17 @@
2449024492
*/
2449124493
/* #include "sqliteInt.h" */
2449224494
/* #include <assert.h> */
2449324495
/* #include "vdbeInt.h" */
2449424496
24495
-#ifndef SQLITE_AMALGAMATION
24497
+#if !defined(SQLITE_AMALGAMATION) && SQLITE_BYTEORDER==0
2449624498
/*
2449724499
** The following constant value is used by the SQLITE_BIGENDIAN and
2449824500
** SQLITE_LITTLEENDIAN macros.
2449924501
*/
2450024502
SQLITE_PRIVATE const int sqlite3one = 1;
24501
-#endif /* SQLITE_AMALGAMATION */
24503
+#endif /* SQLITE_AMALGAMATION && SQLITE_BYTEORDER==0 */
2450224504
2450324505
/*
2450424506
** This lookup table is used to help decode the first byte of
2450524507
** a multi-byte UTF8 character.
2450624508
*/
@@ -86739,11 +86741,11 @@
8673986741
}
8674086742
if( isReduced ){
8674186743
assert( ExprHasProperty(p, EP_Reduced)==0 );
8674286744
memcpy(zAlloc, p, nNewSize);
8674386745
}else{
86744
- int nSize = exprStructSize(p);
86746
+ u32 nSize = (u32)exprStructSize(p);
8674586747
memcpy(zAlloc, p, nSize);
8674686748
if( nSize<EXPR_FULLSIZE ){
8674786749
memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
8674886750
}
8674986751
}
@@ -169981,11 +169983,11 @@
169981169983
{ "bm25", 0, fts5Bm25Function, 0 },
169982169984
};
169983169985
int rc = SQLITE_OK; /* Return code */
169984169986
int i; /* To iterate through builtin functions */
169985169987
169986
- for(i=0; rc==SQLITE_OK && i<sizeof(aBuiltin)/sizeof(aBuiltin[0]); i++){
169988
+ for(i=0; rc==SQLITE_OK && i<(int)ArraySize(aBuiltin); i++){
169987169989
rc = pApi->xCreateFunction(pApi,
169988169990
aBuiltin[i].zFunc,
169989169991
aBuiltin[i].pUserData,
169990169992
aBuiltin[i].xFunc,
169991169993
aBuiltin[i].xDestroy
@@ -171605,11 +171607,11 @@
171605171607
171606171608
fts5BufferZero(&pPhrase->poslist);
171607171609
171608171610
/* If the aStatic[] array is not large enough, allocate a large array
171609171611
** using sqlite3_malloc(). This approach could be improved upon. */
171610
- if( pPhrase->nTerm>(sizeof(aStatic) / sizeof(aStatic[0])) ){
171612
+ if( pPhrase->nTerm>(int)ArraySize(aStatic) ){
171611171613
int nByte = sizeof(Fts5PoslistReader) * pPhrase->nTerm;
171612171614
aIter = (Fts5PoslistReader*)sqlite3_malloc(nByte);
171613171615
if( !aIter ) return SQLITE_NOMEM;
171614171616
}
171615171617
memset(aIter, 0, sizeof(Fts5PoslistReader) * pPhrase->nTerm);
@@ -171741,11 +171743,11 @@
171741171743
171742171744
assert( pNear->nPhrase>1 );
171743171745
171744171746
/* If the aStatic[] array is not large enough, allocate a large array
171745171747
** using sqlite3_malloc(). This approach could be improved upon. */
171746
- if( pNear->nPhrase>(sizeof(aStatic) / sizeof(aStatic[0])) ){
171748
+ if( pNear->nPhrase>(int)ArraySize(aStatic) ){
171747171749
int nByte = sizeof(Fts5NearTrimmer) * pNear->nPhrase;
171748171750
a = (Fts5NearTrimmer*)sqlite3Fts5MallocZero(&rc, nByte);
171749171751
}else{
171750171752
memset(aStatic, 0, sizeof(aStatic));
171751171753
}
@@ -173388,11 +173390,11 @@
173388173390
};
173389173391
int i;
173390173392
int rc = SQLITE_OK;
173391173393
void *pCtx = (void*)pGlobal;
173392173394
173393
- for(i=0; rc==SQLITE_OK && i<(sizeof(aFunc) / sizeof(aFunc[0])); i++){
173395
+ for(i=0; rc==SQLITE_OK && i<(int)ArraySize(aFunc); i++){
173394173396
struct Fts5ExprFunc *p = &aFunc[i];
173395173397
rc = sqlite3_create_function(db, p->z, -1, SQLITE_UTF8, pCtx, p->x, 0, 0);
173396173398
}
173397173399
173398173400
/* Avoid a warning indicating that sqlite3Fts5ParserTrace() is unused */
@@ -180242,11 +180244,11 @@
180242180244
180243180245
/* Set idxFlags flags for all WHERE clause terms that will be used. */
180244180246
for(i=0; i<pInfo->nConstraint; i++){
180245180247
struct sqlite3_index_constraint *p = &pInfo->aConstraint[i];
180246180248
int j;
180247
- for(j=0; j<sizeof(aConstraint)/sizeof(aConstraint[0]); j++){
180249
+ for(j=0; j<(int)ArraySize(aConstraint); j++){
180248180250
struct Constraint *pC = &aConstraint[j];
180249180251
if( p->iColumn==aColMap[pC->iCol] && p->op & pC->op ){
180250180252
if( p->usable ){
180251180253
pC->iConsIndex = i;
180252180254
idxFlags |= pC->fts5op;
@@ -180289,11 +180291,11 @@
180289180291
pInfo->estimatedCost = bHasMatch ? 1000.0 : 1000000.0;
180290180292
}
180291180293
180292180294
/* Assign argvIndex values to each constraint in use. */
180293180295
iNext = 1;
180294
- for(i=0; i<sizeof(aConstraint)/sizeof(aConstraint[0]); i++){
180296
+ for(i=0; i<(int)ArraySize(aConstraint); i++){
180295180297
struct Constraint *pC = &aConstraint[i];
180296180298
if( pC->iConsIndex>=0 ){
180297180299
pInfo->aConstraintUsage[pC->iConsIndex].argvIndex = iNext++;
180298180300
pInfo->aConstraintUsage[pC->iConsIndex].omit = (unsigned char)pC->omit;
180299180301
}
@@ -182139,11 +182141,11 @@
182139182141
sqlite3_context *pCtx, /* Function call context */
182140182142
int nArg, /* Number of args */
182141182143
sqlite3_value **apVal /* Function arguments */
182142182144
){
182143182145
assert( nArg==0 );
182144
- sqlite3_result_text(pCtx, "fts5: 2015-12-18 16:29:47 8bf5e056eb8beb6e0ed5874fb24d7fe9f0b66d2b", -1, SQLITE_TRANSIENT);
182146
+ sqlite3_result_text(pCtx, "fts5: 2015-12-23 16:42:27 5d44d4a6cf5c6b983cbd846d9bc34251df8f4bc5", -1, SQLITE_TRANSIENT);
182145182147
}
182146182148
182147182149
static int fts5Init(sqlite3 *db){
182148182150
static const sqlite3_module fts5Mod = {
182149182151
/* iVersion */ 2,
@@ -182584,11 +182586,11 @@
182584182586
int rc = SQLITE_OK;
182585182587
if( p ){
182586182588
int i;
182587182589
182588182590
/* Finalize all SQL statements */
182589
- for(i=0; i<ArraySize(p->aStmt); i++){
182591
+ for(i=0; i<(int)ArraySize(p->aStmt); i++){
182590182592
sqlite3_finalize(p->aStmt[i]);
182591182593
}
182592182594
182593182595
sqlite3_free(p);
182594182596
}
@@ -184570,11 +184572,11 @@
184570184572
};
184571184573
184572184574
int rc = SQLITE_OK; /* Return code */
184573184575
int i; /* To iterate through builtin functions */
184574184576
184575
- for(i=0; rc==SQLITE_OK && i<sizeof(aBuiltin)/sizeof(aBuiltin[0]); i++){
184577
+ for(i=0; rc==SQLITE_OK && i<(int)ArraySize(aBuiltin); i++){
184576184578
rc = pApi->xCreateTokenizer(pApi,
184577184579
aBuiltin[i].zName,
184578184580
(void*)pApi,
184579184581
&aBuiltin[i].x,
184580184582
0
184581184583
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -325,11 +325,11 @@
325 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
326 ** [sqlite_version()] and [sqlite_source_id()].
327 */
328 #define SQLITE_VERSION "3.10.0"
329 #define SQLITE_VERSION_NUMBER 3010000
330 #define SQLITE_SOURCE_ID "2015-12-23 10:54:48 b910a3d53769689d9212a06f974ccce54844bbe4"
331
332 /*
333 ** CAPI3REF: Run-Time Library Version Numbers
334 ** KEYWORDS: sqlite3_version, sqlite3_sourceid
335 **
@@ -9901,15 +9901,10 @@
9901 ** For best performance, an attempt is made to guess at the byte-order
9902 ** using C-preprocessor macros. If that is unsuccessful, or if
9903 ** -DSQLITE_RUNTIME_BYTEORDER=1 is set, then byte-order is determined
9904 ** at run-time.
9905 */
9906 #ifdef SQLITE_AMALGAMATION
9907 SQLITE_PRIVATE const int sqlite3one = 1;
9908 #else
9909 SQLITE_PRIVATE const int sqlite3one;
9910 #endif
9911 #if (defined(i386) || defined(__i386__) || defined(_M_IX86) || \
9912 defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || \
9913 defined(_M_AMD64) || defined(_M_ARM) || defined(__x86) || \
9914 defined(__arm__)) && !defined(SQLITE_RUNTIME_BYTEORDER)
9915 # define SQLITE_BYTEORDER 1234
@@ -9923,10 +9918,15 @@
9923 # define SQLITE_BIGENDIAN 1
9924 # define SQLITE_LITTLEENDIAN 0
9925 # define SQLITE_UTF16NATIVE SQLITE_UTF16BE
9926 #endif
9927 #if !defined(SQLITE_BYTEORDER)
 
 
 
 
 
9928 # define SQLITE_BYTEORDER 0 /* 0 means "unknown at compile-time" */
9929 # define SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0)
9930 # define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1)
9931 # define SQLITE_UTF16NATIVE (SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE)
9932 #endif
@@ -20655,10 +20655,12 @@
20655 int trace; /* True to trace changes */
20656 #endif
20657 };
20658 #if SQLITE_MUTEX_NREF
20659 #define SQLITE3_MUTEX_INITIALIZER {PTHREAD_MUTEX_INITIALIZER,0,0,(pthread_t)0,0}
 
 
20660 #else
20661 #define SQLITE3_MUTEX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER }
20662 #endif
20663
20664 /*
@@ -24490,17 +24492,17 @@
24490 */
24491 /* #include "sqliteInt.h" */
24492 /* #include <assert.h> */
24493 /* #include "vdbeInt.h" */
24494
24495 #ifndef SQLITE_AMALGAMATION
24496 /*
24497 ** The following constant value is used by the SQLITE_BIGENDIAN and
24498 ** SQLITE_LITTLEENDIAN macros.
24499 */
24500 SQLITE_PRIVATE const int sqlite3one = 1;
24501 #endif /* SQLITE_AMALGAMATION */
24502
24503 /*
24504 ** This lookup table is used to help decode the first byte of
24505 ** a multi-byte UTF8 character.
24506 */
@@ -86739,11 +86741,11 @@
86739 }
86740 if( isReduced ){
86741 assert( ExprHasProperty(p, EP_Reduced)==0 );
86742 memcpy(zAlloc, p, nNewSize);
86743 }else{
86744 int nSize = exprStructSize(p);
86745 memcpy(zAlloc, p, nSize);
86746 if( nSize<EXPR_FULLSIZE ){
86747 memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
86748 }
86749 }
@@ -169981,11 +169983,11 @@
169981 { "bm25", 0, fts5Bm25Function, 0 },
169982 };
169983 int rc = SQLITE_OK; /* Return code */
169984 int i; /* To iterate through builtin functions */
169985
169986 for(i=0; rc==SQLITE_OK && i<sizeof(aBuiltin)/sizeof(aBuiltin[0]); i++){
169987 rc = pApi->xCreateFunction(pApi,
169988 aBuiltin[i].zFunc,
169989 aBuiltin[i].pUserData,
169990 aBuiltin[i].xFunc,
169991 aBuiltin[i].xDestroy
@@ -171605,11 +171607,11 @@
171605
171606 fts5BufferZero(&pPhrase->poslist);
171607
171608 /* If the aStatic[] array is not large enough, allocate a large array
171609 ** using sqlite3_malloc(). This approach could be improved upon. */
171610 if( pPhrase->nTerm>(sizeof(aStatic) / sizeof(aStatic[0])) ){
171611 int nByte = sizeof(Fts5PoslistReader) * pPhrase->nTerm;
171612 aIter = (Fts5PoslistReader*)sqlite3_malloc(nByte);
171613 if( !aIter ) return SQLITE_NOMEM;
171614 }
171615 memset(aIter, 0, sizeof(Fts5PoslistReader) * pPhrase->nTerm);
@@ -171741,11 +171743,11 @@
171741
171742 assert( pNear->nPhrase>1 );
171743
171744 /* If the aStatic[] array is not large enough, allocate a large array
171745 ** using sqlite3_malloc(). This approach could be improved upon. */
171746 if( pNear->nPhrase>(sizeof(aStatic) / sizeof(aStatic[0])) ){
171747 int nByte = sizeof(Fts5NearTrimmer) * pNear->nPhrase;
171748 a = (Fts5NearTrimmer*)sqlite3Fts5MallocZero(&rc, nByte);
171749 }else{
171750 memset(aStatic, 0, sizeof(aStatic));
171751 }
@@ -173388,11 +173390,11 @@
173388 };
173389 int i;
173390 int rc = SQLITE_OK;
173391 void *pCtx = (void*)pGlobal;
173392
173393 for(i=0; rc==SQLITE_OK && i<(sizeof(aFunc) / sizeof(aFunc[0])); i++){
173394 struct Fts5ExprFunc *p = &aFunc[i];
173395 rc = sqlite3_create_function(db, p->z, -1, SQLITE_UTF8, pCtx, p->x, 0, 0);
173396 }
173397
173398 /* Avoid a warning indicating that sqlite3Fts5ParserTrace() is unused */
@@ -180242,11 +180244,11 @@
180242
180243 /* Set idxFlags flags for all WHERE clause terms that will be used. */
180244 for(i=0; i<pInfo->nConstraint; i++){
180245 struct sqlite3_index_constraint *p = &pInfo->aConstraint[i];
180246 int j;
180247 for(j=0; j<sizeof(aConstraint)/sizeof(aConstraint[0]); j++){
180248 struct Constraint *pC = &aConstraint[j];
180249 if( p->iColumn==aColMap[pC->iCol] && p->op & pC->op ){
180250 if( p->usable ){
180251 pC->iConsIndex = i;
180252 idxFlags |= pC->fts5op;
@@ -180289,11 +180291,11 @@
180289 pInfo->estimatedCost = bHasMatch ? 1000.0 : 1000000.0;
180290 }
180291
180292 /* Assign argvIndex values to each constraint in use. */
180293 iNext = 1;
180294 for(i=0; i<sizeof(aConstraint)/sizeof(aConstraint[0]); i++){
180295 struct Constraint *pC = &aConstraint[i];
180296 if( pC->iConsIndex>=0 ){
180297 pInfo->aConstraintUsage[pC->iConsIndex].argvIndex = iNext++;
180298 pInfo->aConstraintUsage[pC->iConsIndex].omit = (unsigned char)pC->omit;
180299 }
@@ -182139,11 +182141,11 @@
182139 sqlite3_context *pCtx, /* Function call context */
182140 int nArg, /* Number of args */
182141 sqlite3_value **apVal /* Function arguments */
182142 ){
182143 assert( nArg==0 );
182144 sqlite3_result_text(pCtx, "fts5: 2015-12-18 16:29:47 8bf5e056eb8beb6e0ed5874fb24d7fe9f0b66d2b", -1, SQLITE_TRANSIENT);
182145 }
182146
182147 static int fts5Init(sqlite3 *db){
182148 static const sqlite3_module fts5Mod = {
182149 /* iVersion */ 2,
@@ -182584,11 +182586,11 @@
182584 int rc = SQLITE_OK;
182585 if( p ){
182586 int i;
182587
182588 /* Finalize all SQL statements */
182589 for(i=0; i<ArraySize(p->aStmt); i++){
182590 sqlite3_finalize(p->aStmt[i]);
182591 }
182592
182593 sqlite3_free(p);
182594 }
@@ -184570,11 +184572,11 @@
184570 };
184571
184572 int rc = SQLITE_OK; /* Return code */
184573 int i; /* To iterate through builtin functions */
184574
184575 for(i=0; rc==SQLITE_OK && i<sizeof(aBuiltin)/sizeof(aBuiltin[0]); i++){
184576 rc = pApi->xCreateTokenizer(pApi,
184577 aBuiltin[i].zName,
184578 (void*)pApi,
184579 &aBuiltin[i].x,
184580 0
184581
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -325,11 +325,11 @@
325 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
326 ** [sqlite_version()] and [sqlite_source_id()].
327 */
328 #define SQLITE_VERSION "3.10.0"
329 #define SQLITE_VERSION_NUMBER 3010000
330 #define SQLITE_SOURCE_ID "2015-12-24 14:53:27 7c7b7f26306b6aa6ff35b871ad756f43f5db9838"
331
332 /*
333 ** CAPI3REF: Run-Time Library Version Numbers
334 ** KEYWORDS: sqlite3_version, sqlite3_sourceid
335 **
@@ -9901,15 +9901,10 @@
9901 ** For best performance, an attempt is made to guess at the byte-order
9902 ** using C-preprocessor macros. If that is unsuccessful, or if
9903 ** -DSQLITE_RUNTIME_BYTEORDER=1 is set, then byte-order is determined
9904 ** at run-time.
9905 */
 
 
 
 
 
9906 #if (defined(i386) || defined(__i386__) || defined(_M_IX86) || \
9907 defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || \
9908 defined(_M_AMD64) || defined(_M_ARM) || defined(__x86) || \
9909 defined(__arm__)) && !defined(SQLITE_RUNTIME_BYTEORDER)
9910 # define SQLITE_BYTEORDER 1234
@@ -9923,10 +9918,15 @@
9918 # define SQLITE_BIGENDIAN 1
9919 # define SQLITE_LITTLEENDIAN 0
9920 # define SQLITE_UTF16NATIVE SQLITE_UTF16BE
9921 #endif
9922 #if !defined(SQLITE_BYTEORDER)
9923 # ifdef SQLITE_AMALGAMATION
9924 const int sqlite3one = 1;
9925 # else
9926 extern const int sqlite3one;
9927 # endif
9928 # define SQLITE_BYTEORDER 0 /* 0 means "unknown at compile-time" */
9929 # define SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0)
9930 # define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1)
9931 # define SQLITE_UTF16NATIVE (SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE)
9932 #endif
@@ -20655,10 +20655,12 @@
20655 int trace; /* True to trace changes */
20656 #endif
20657 };
20658 #if SQLITE_MUTEX_NREF
20659 #define SQLITE3_MUTEX_INITIALIZER {PTHREAD_MUTEX_INITIALIZER,0,0,(pthread_t)0,0}
20660 #elif defined(SQLITE_ENABLE_API_ARMOR)
20661 #define SQLITE3_MUTEX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER, 0 }
20662 #else
20663 #define SQLITE3_MUTEX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER }
20664 #endif
20665
20666 /*
@@ -24490,17 +24492,17 @@
24492 */
24493 /* #include "sqliteInt.h" */
24494 /* #include <assert.h> */
24495 /* #include "vdbeInt.h" */
24496
24497 #if !defined(SQLITE_AMALGAMATION) && SQLITE_BYTEORDER==0
24498 /*
24499 ** The following constant value is used by the SQLITE_BIGENDIAN and
24500 ** SQLITE_LITTLEENDIAN macros.
24501 */
24502 SQLITE_PRIVATE const int sqlite3one = 1;
24503 #endif /* SQLITE_AMALGAMATION && SQLITE_BYTEORDER==0 */
24504
24505 /*
24506 ** This lookup table is used to help decode the first byte of
24507 ** a multi-byte UTF8 character.
24508 */
@@ -86739,11 +86741,11 @@
86741 }
86742 if( isReduced ){
86743 assert( ExprHasProperty(p, EP_Reduced)==0 );
86744 memcpy(zAlloc, p, nNewSize);
86745 }else{
86746 u32 nSize = (u32)exprStructSize(p);
86747 memcpy(zAlloc, p, nSize);
86748 if( nSize<EXPR_FULLSIZE ){
86749 memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
86750 }
86751 }
@@ -169981,11 +169983,11 @@
169983 { "bm25", 0, fts5Bm25Function, 0 },
169984 };
169985 int rc = SQLITE_OK; /* Return code */
169986 int i; /* To iterate through builtin functions */
169987
169988 for(i=0; rc==SQLITE_OK && i<(int)ArraySize(aBuiltin); i++){
169989 rc = pApi->xCreateFunction(pApi,
169990 aBuiltin[i].zFunc,
169991 aBuiltin[i].pUserData,
169992 aBuiltin[i].xFunc,
169993 aBuiltin[i].xDestroy
@@ -171605,11 +171607,11 @@
171607
171608 fts5BufferZero(&pPhrase->poslist);
171609
171610 /* If the aStatic[] array is not large enough, allocate a large array
171611 ** using sqlite3_malloc(). This approach could be improved upon. */
171612 if( pPhrase->nTerm>(int)ArraySize(aStatic) ){
171613 int nByte = sizeof(Fts5PoslistReader) * pPhrase->nTerm;
171614 aIter = (Fts5PoslistReader*)sqlite3_malloc(nByte);
171615 if( !aIter ) return SQLITE_NOMEM;
171616 }
171617 memset(aIter, 0, sizeof(Fts5PoslistReader) * pPhrase->nTerm);
@@ -171741,11 +171743,11 @@
171743
171744 assert( pNear->nPhrase>1 );
171745
171746 /* If the aStatic[] array is not large enough, allocate a large array
171747 ** using sqlite3_malloc(). This approach could be improved upon. */
171748 if( pNear->nPhrase>(int)ArraySize(aStatic) ){
171749 int nByte = sizeof(Fts5NearTrimmer) * pNear->nPhrase;
171750 a = (Fts5NearTrimmer*)sqlite3Fts5MallocZero(&rc, nByte);
171751 }else{
171752 memset(aStatic, 0, sizeof(aStatic));
171753 }
@@ -173388,11 +173390,11 @@
173390 };
173391 int i;
173392 int rc = SQLITE_OK;
173393 void *pCtx = (void*)pGlobal;
173394
173395 for(i=0; rc==SQLITE_OK && i<(int)ArraySize(aFunc); i++){
173396 struct Fts5ExprFunc *p = &aFunc[i];
173397 rc = sqlite3_create_function(db, p->z, -1, SQLITE_UTF8, pCtx, p->x, 0, 0);
173398 }
173399
173400 /* Avoid a warning indicating that sqlite3Fts5ParserTrace() is unused */
@@ -180242,11 +180244,11 @@
180244
180245 /* Set idxFlags flags for all WHERE clause terms that will be used. */
180246 for(i=0; i<pInfo->nConstraint; i++){
180247 struct sqlite3_index_constraint *p = &pInfo->aConstraint[i];
180248 int j;
180249 for(j=0; j<(int)ArraySize(aConstraint); j++){
180250 struct Constraint *pC = &aConstraint[j];
180251 if( p->iColumn==aColMap[pC->iCol] && p->op & pC->op ){
180252 if( p->usable ){
180253 pC->iConsIndex = i;
180254 idxFlags |= pC->fts5op;
@@ -180289,11 +180291,11 @@
180291 pInfo->estimatedCost = bHasMatch ? 1000.0 : 1000000.0;
180292 }
180293
180294 /* Assign argvIndex values to each constraint in use. */
180295 iNext = 1;
180296 for(i=0; i<(int)ArraySize(aConstraint); i++){
180297 struct Constraint *pC = &aConstraint[i];
180298 if( pC->iConsIndex>=0 ){
180299 pInfo->aConstraintUsage[pC->iConsIndex].argvIndex = iNext++;
180300 pInfo->aConstraintUsage[pC->iConsIndex].omit = (unsigned char)pC->omit;
180301 }
@@ -182139,11 +182141,11 @@
182141 sqlite3_context *pCtx, /* Function call context */
182142 int nArg, /* Number of args */
182143 sqlite3_value **apVal /* Function arguments */
182144 ){
182145 assert( nArg==0 );
182146 sqlite3_result_text(pCtx, "fts5: 2015-12-23 16:42:27 5d44d4a6cf5c6b983cbd846d9bc34251df8f4bc5", -1, SQLITE_TRANSIENT);
182147 }
182148
182149 static int fts5Init(sqlite3 *db){
182150 static const sqlite3_module fts5Mod = {
182151 /* iVersion */ 2,
@@ -182584,11 +182586,11 @@
182586 int rc = SQLITE_OK;
182587 if( p ){
182588 int i;
182589
182590 /* Finalize all SQL statements */
182591 for(i=0; i<(int)ArraySize(p->aStmt); i++){
182592 sqlite3_finalize(p->aStmt[i]);
182593 }
182594
182595 sqlite3_free(p);
182596 }
@@ -184570,11 +184572,11 @@
184572 };
184573
184574 int rc = SQLITE_OK; /* Return code */
184575 int i; /* To iterate through builtin functions */
184576
184577 for(i=0; rc==SQLITE_OK && i<(int)ArraySize(aBuiltin); i++){
184578 rc = pApi->xCreateTokenizer(pApi,
184579 aBuiltin[i].zName,
184580 (void*)pApi,
184581 &aBuiltin[i].x,
184582 0
184583
+1 -1
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -111,11 +111,11 @@
111111
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
112112
** [sqlite_version()] and [sqlite_source_id()].
113113
*/
114114
#define SQLITE_VERSION "3.10.0"
115115
#define SQLITE_VERSION_NUMBER 3010000
116
-#define SQLITE_SOURCE_ID "2015-12-23 10:54:48 b910a3d53769689d9212a06f974ccce54844bbe4"
116
+#define SQLITE_SOURCE_ID "2015-12-24 14:53:27 7c7b7f26306b6aa6ff35b871ad756f43f5db9838"
117117
118118
/*
119119
** CAPI3REF: Run-Time Library Version Numbers
120120
** KEYWORDS: sqlite3_version, sqlite3_sourceid
121121
**
122122
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -111,11 +111,11 @@
111 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
112 ** [sqlite_version()] and [sqlite_source_id()].
113 */
114 #define SQLITE_VERSION "3.10.0"
115 #define SQLITE_VERSION_NUMBER 3010000
116 #define SQLITE_SOURCE_ID "2015-12-23 10:54:48 b910a3d53769689d9212a06f974ccce54844bbe4"
117
118 /*
119 ** CAPI3REF: Run-Time Library Version Numbers
120 ** KEYWORDS: sqlite3_version, sqlite3_sourceid
121 **
122
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -111,11 +111,11 @@
111 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
112 ** [sqlite_version()] and [sqlite_source_id()].
113 */
114 #define SQLITE_VERSION "3.10.0"
115 #define SQLITE_VERSION_NUMBER 3010000
116 #define SQLITE_SOURCE_ID "2015-12-24 14:53:27 7c7b7f26306b6aa6ff35b871ad756f43f5db9838"
117
118 /*
119 ** CAPI3REF: Run-Time Library Version Numbers
120 ** KEYWORDS: sqlite3_version, sqlite3_sourceid
121 **
122

Keyboard Shortcuts

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