diff options
Diffstat (limited to 'libs/sqlite3')
| -rw-r--r-- | libs/sqlite3/src/sqlite3.c | 25 | ||||
| -rw-r--r-- | libs/sqlite3/src/sqlite3.h | 8 | 
2 files changed, 18 insertions, 15 deletions
diff --git a/libs/sqlite3/src/sqlite3.c b/libs/sqlite3/src/sqlite3.c index 8b70dbe681..54f8277a71 100644 --- a/libs/sqlite3/src/sqlite3.c +++ b/libs/sqlite3/src/sqlite3.c @@ -1,6 +1,6 @@  /******************************************************************************  ** This file is an amalgamation of many separate C source files from SQLite -** version 3.35.1.  By combining all the individual C code files into this +** version 3.35.2.  By combining all the individual C code files into this  ** single large file, the entire code can be compiled as a single translation  ** unit.  This allows many compilers to do optimizations that would not be  ** possible if the files were compiled separately.  Performance improvements @@ -1186,9 +1186,9 @@ extern "C" {  ** [sqlite3_libversion_number()], [sqlite3_sourceid()],  ** [sqlite_version()] and [sqlite_source_id()].  */ -#define SQLITE_VERSION        "3.35.1" -#define SQLITE_VERSION_NUMBER 3035001 -#define SQLITE_SOURCE_ID      "2021-03-15 16:53:57 aea12399bf1fdc76af43499d4624c3afa17c3e6c2459b71c195804bb98def66a" +#define SQLITE_VERSION        "3.35.2" +#define SQLITE_VERSION_NUMBER 3035002 +#define SQLITE_SOURCE_ID      "2021-03-17 19:07:21 ea80f3002f4120f5dcee76e8779dfdc88e1e096c5cdd06904c20fd26d50c3827"  /*  ** CAPI3REF: Run-Time Library Version Numbers @@ -22871,6 +22871,7 @@ static int isDate(    int eType;    memset(p, 0, sizeof(*p));    if( argc==0 ){ +    if( !sqlite3NotPureFunc(context) ) return 1;      return setDateTimeToCurrent(context, p);    }    if( (eType = sqlite3_value_type(argv[0]))==SQLITE_FLOAT @@ -108172,12 +108173,12 @@ static void renameColumnFunc(          for(pIdx=sParse.pNewIndex; pIdx; pIdx=pIdx->pNext){            sqlite3WalkExprList(&sWalker, pIdx->aColExpr);          } -      }  #ifndef SQLITE_OMIT_GENERATED_COLUMNS -      for(i=0; i<sParse.pNewTable->nCol; i++){ -        sqlite3WalkExpr(&sWalker, sParse.pNewTable->aCol[i].pDflt); -      } +        for(i=0; i<sParse.pNewTable->nCol; i++){ +          sqlite3WalkExpr(&sWalker, sParse.pNewTable->aCol[i].pDflt); +        }  #endif +      }        for(pFKey=sParse.pNewTable->pFKey; pFKey; pFKey=pFKey->pNextFrom){          for(i=0; i<pFKey->nCol; i++){ @@ -135136,6 +135137,7 @@ static int flattenSubquery(      if( (p->selFlags & SF_Recursive) ) return 0;      if( pSrc->nSrc>1 ){ +      if( pParse->nSelect>500 ) return 0;        aCsrMap = sqlite3DbMallocZero(db, pParse->nTab*sizeof(int));      }    } @@ -135212,6 +135214,7 @@ static int flattenSubquery(      if( pNew==0 ){        p->pPrior = pPrior;      }else{ +      pNew->selId = ++pParse->nSelect;        if( aCsrMap && db->mallocFailed==0 ){          renumberCursors(pParse, pNew, iFrom, aCsrMap);        } @@ -229210,7 +229213,7 @@ static void fts5SourceIdFunc(  ){    assert( nArg==0 );    UNUSED_PARAM2(nArg, apUnused); -  sqlite3_result_text(pCtx, "fts5: 2021-03-15 16:53:57 aea12399bf1fdc76af43499d4624c3afa17c3e6c2459b71c195804bb98def66a", -1, SQLITE_TRANSIENT); +  sqlite3_result_text(pCtx, "fts5: 2021-03-17 19:07:21 ea80f3002f4120f5dcee76e8779dfdc88e1e096c5cdd06904c20fd26d50c3827", -1, SQLITE_TRANSIENT);  }  /* @@ -234136,9 +234139,9 @@ SQLITE_API int sqlite3_stmt_init(  #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_STMTVTAB) */  /************** End of stmt.c ************************************************/ -#if __LINE__!=234139 +#if __LINE__!=234142  #undef SQLITE_SOURCE_ID -#define SQLITE_SOURCE_ID      "2021-03-15 16:53:57 aea12399bf1fdc76af43499d4624c3afa17c3e6c2459b71c195804bb98dealt2" +#define SQLITE_SOURCE_ID      "2021-03-17 19:07:21 ea80f3002f4120f5dcee76e8779dfdc88e1e096c5cdd06904c20fd26d50calt2"  #endif  /* Return the source-id for this library */  SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; } diff --git a/libs/sqlite3/src/sqlite3.h b/libs/sqlite3/src/sqlite3.h index 6388f5bfeb..f636b294d2 100644 --- a/libs/sqlite3/src/sqlite3.h +++ b/libs/sqlite3/src/sqlite3.h @@ -49,7 +49,7 @@ extern "C" {  # define SQLITE_EXTERN extern  #endif  #ifndef SQLITE_API -# define SQLITE_API __declspec(dllimport) +# define SQLITE_API  #endif  #ifndef SQLITE_CDECL  # define SQLITE_CDECL @@ -123,9 +123,9 @@ extern "C" {  ** [sqlite3_libversion_number()], [sqlite3_sourceid()],  ** [sqlite_version()] and [sqlite_source_id()].  */ -#define SQLITE_VERSION        "3.35.1" -#define SQLITE_VERSION_NUMBER 3035001 -#define SQLITE_SOURCE_ID      "2021-03-15 16:53:57 aea12399bf1fdc76af43499d4624c3afa17c3e6c2459b71c195804bb98def66a" +#define SQLITE_VERSION        "3.35.2" +#define SQLITE_VERSION_NUMBER 3035002 +#define SQLITE_SOURCE_ID      "2021-03-17 19:07:21 ea80f3002f4120f5dcee76e8779dfdc88e1e096c5cdd06904c20fd26d50c3827"  /*  ** CAPI3REF: Run-Time Library Version Numbers  | 
