| | @@ -1162,11 +1162,11 @@ |
| 1162 | 1162 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 1163 | 1163 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 1164 | 1164 | */ |
| 1165 | 1165 | #define SQLITE_VERSION "3.32.0" |
| 1166 | 1166 | #define SQLITE_VERSION_NUMBER 3032000 |
| 1167 | | -#define SQLITE_SOURCE_ID "2020-05-19 15:51:10 3117c1b5a9e348fd8d16ba9d03fdafaad8514567fb3403f72b86d6162ad40bde" |
| 1167 | +#define SQLITE_SOURCE_ID "2020-05-22 17:46:16 5998789c9c744bce92e4cff7636bba800a75574243d6977e1fc8281e360f8d5a" |
| 1168 | 1168 | |
| 1169 | 1169 | /* |
| 1170 | 1170 | ** CAPI3REF: Run-Time Library Version Numbers |
| 1171 | 1171 | ** KEYWORDS: sqlite3_version sqlite3_sourceid |
| 1172 | 1172 | ** |
| | @@ -30856,10 +30856,11 @@ |
| 30856 | 30856 | /* UTF-16 Little-endian -> UTF-8 */ |
| 30857 | 30857 | while( zIn<zTerm ){ |
| 30858 | 30858 | c = *(zIn++); |
| 30859 | 30859 | c += (*(zIn++))<<8; |
| 30860 | 30860 | if( c>=0xd800 && c<0xe000 ){ |
| 30861 | +#ifdef SQLITE_REPLACE_INVALID_UTF |
| 30861 | 30862 | if( c>=0xdc00 || zIn>=zTerm ){ |
| 30862 | 30863 | c = 0xfffd; |
| 30863 | 30864 | }else{ |
| 30864 | 30865 | int c2 = *(zIn++); |
| 30865 | 30866 | c2 += (*(zIn++))<<8; |
| | @@ -30868,19 +30869,27 @@ |
| 30868 | 30869 | c = 0xfffd; |
| 30869 | 30870 | }else{ |
| 30870 | 30871 | c = ((c&0x3ff)<<10) + (c2&0x3ff) + 0x10000; |
| 30871 | 30872 | } |
| 30872 | 30873 | } |
| 30874 | +#else |
| 30875 | + if( zIn<zTerm ){ |
| 30876 | + int c2 = (*zIn++); |
| 30877 | + c2 += ((*zIn++)<<8); |
| 30878 | + c = (c2&0x03FF) + ((c&0x003F)<<10) + (((c&0x03C0)+0x0040)<<10); |
| 30879 | + } |
| 30880 | +#endif |
| 30873 | 30881 | } |
| 30874 | 30882 | WRITE_UTF8(z, c); |
| 30875 | 30883 | } |
| 30876 | 30884 | }else{ |
| 30877 | 30885 | /* UTF-16 Big-endian -> UTF-8 */ |
| 30878 | 30886 | while( zIn<zTerm ){ |
| 30879 | 30887 | c = (*(zIn++))<<8; |
| 30880 | 30888 | c += *(zIn++); |
| 30881 | 30889 | if( c>=0xd800 && c<0xe000 ){ |
| 30890 | +#ifdef SQLITE_REPLACE_INVALID_UTF |
| 30882 | 30891 | if( c>=0xdc00 || zIn>=zTerm ){ |
| 30883 | 30892 | c = 0xfffd; |
| 30884 | 30893 | }else{ |
| 30885 | 30894 | int c2 = (*(zIn++))<<8; |
| 30886 | 30895 | c2 += *(zIn++); |
| | @@ -30889,10 +30898,17 @@ |
| 30889 | 30898 | c = 0xfffd; |
| 30890 | 30899 | }else{ |
| 30891 | 30900 | c = ((c&0x3ff)<<10) + (c2&0x3ff) + 0x10000; |
| 30892 | 30901 | } |
| 30893 | 30902 | } |
| 30903 | +#else |
| 30904 | + if( zIn<zTerm ){ |
| 30905 | + int c2 = ((*zIn++)<<8); |
| 30906 | + c2 += (*zIn++); |
| 30907 | + c = (c2&0x03FF) + ((c&0x003F)<<10) + (((c&0x03C0)+0x0040)<<10); |
| 30908 | + } |
| 30909 | +#endif |
| 30894 | 30910 | } |
| 30895 | 30911 | WRITE_UTF8(z, c); |
| 30896 | 30912 | } |
| 30897 | 30913 | } |
| 30898 | 30914 | pMem->n = (int)(z - zOut); |
| | @@ -48315,14 +48331,15 @@ |
| 48315 | 48331 | */ |
| 48316 | 48332 | SQLITE_PRIVATE int sqlite3MemdbInit(void){ |
| 48317 | 48333 | sqlite3_vfs *pLower = sqlite3_vfs_find(0); |
| 48318 | 48334 | int sz = pLower->szOsFile; |
| 48319 | 48335 | memdb_vfs.pAppData = pLower; |
| 48320 | | - /* In all known configurations of SQLite, the size of a default |
| 48321 | | - ** sqlite3_file is greater than the size of a memdb sqlite3_file. |
| 48322 | | - ** Should that ever change, remove the following NEVER() */ |
| 48323 | | - if( NEVER(sz<sizeof(MemFile)) ) sz = sizeof(MemFile); |
| 48336 | + /* The following conditional can only be true when compiled for |
| 48337 | + ** Windows x86 and SQLITE_MAX_MMAP_SIZE=0. We always leave |
| 48338 | + ** it in, to be safe, but it is marked as NO_TEST since there |
| 48339 | + ** is no way to reach it under most builds. */ |
| 48340 | + if( sz<sizeof(MemFile) ) sz = sizeof(MemFile); /*NO_TEST*/ |
| 48324 | 48341 | memdb_vfs.szOsFile = sz; |
| 48325 | 48342 | return sqlite3_vfs_register(&memdb_vfs, 0); |
| 48326 | 48343 | } |
| 48327 | 48344 | #endif /* SQLITE_ENABLE_DESERIALIZE */ |
| 48328 | 48345 | |
| | @@ -224747,11 +224764,11 @@ |
| 224747 | 224764 | int nArg, /* Number of args */ |
| 224748 | 224765 | sqlite3_value **apUnused /* Function arguments */ |
| 224749 | 224766 | ){ |
| 224750 | 224767 | assert( nArg==0 ); |
| 224751 | 224768 | UNUSED_PARAM2(nArg, apUnused); |
| 224752 | | - sqlite3_result_text(pCtx, "fts5: 2020-05-19 15:51:10 3117c1b5a9e348fd8d16ba9d03fdafaad8514567fb3403f72b86d6162ad40bde", -1, SQLITE_TRANSIENT); |
| 224769 | + sqlite3_result_text(pCtx, "fts5: 2020-05-22 17:46:16 5998789c9c744bce92e4cff7636bba800a75574243d6977e1fc8281e360f8d5a", -1, SQLITE_TRANSIENT); |
| 224753 | 224770 | } |
| 224754 | 224771 | |
| 224755 | 224772 | /* |
| 224756 | 224773 | ** Return true if zName is the extension on one of the shadow tables used |
| 224757 | 224774 | ** by this module. |
| | @@ -229530,12 +229547,12 @@ |
| 229530 | 229547 | } |
| 229531 | 229548 | #endif /* SQLITE_CORE */ |
| 229532 | 229549 | #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_STMTVTAB) */ |
| 229533 | 229550 | |
| 229534 | 229551 | /************** End of stmt.c ************************************************/ |
| 229535 | | -#if __LINE__!=229535 |
| 229552 | +#if __LINE__!=229552 |
| 229536 | 229553 | #undef SQLITE_SOURCE_ID |
| 229537 | | -#define SQLITE_SOURCE_ID "2020-05-19 15:51:10 3117c1b5a9e348fd8d16ba9d03fdafaad8514567fb3403f72b86d6162ad4alt2" |
| 229554 | +#define SQLITE_SOURCE_ID "2020-05-22 17:46:16 5998789c9c744bce92e4cff7636bba800a75574243d6977e1fc8281e360falt2" |
| 229538 | 229555 | #endif |
| 229539 | 229556 | /* Return the source-id for this library */ |
| 229540 | 229557 | SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; } |
| 229541 | 229558 | /************************** End of sqlite3.c ******************************/ |
| 229542 | 229559 | |