| | @@ -398,11 +398,11 @@ |
| 398 | 398 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 399 | 399 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 400 | 400 | */ |
| 401 | 401 | #define SQLITE_VERSION "3.18.0" |
| 402 | 402 | #define SQLITE_VERSION_NUMBER 3018000 |
| 403 | | -#define SQLITE_SOURCE_ID "2017-03-24 19:45:05 c2c3dd84534bb5ea81c974847b74a166c9cba1545fc749ce625929f303bf22e4" |
| 403 | +#define SQLITE_SOURCE_ID "2017-03-28 18:48:43 424a0d380332858ee55bdebc4af3789f74e70a2b3ba1cf29d84b9b4bcf3e2e37" |
| 404 | 404 | |
| 405 | 405 | /* |
| 406 | 406 | ** CAPI3REF: Run-Time Library Version Numbers |
| 407 | 407 | ** KEYWORDS: sqlite3_version sqlite3_sourceid |
| 408 | 408 | ** |
| | @@ -13893,11 +13893,11 @@ |
| 13893 | 13893 | ** The "PRAGMA synchronous" statement also uses the zero-based numbers. |
| 13894 | 13894 | ** In other words, the zero-based numbers are used for all external interfaces |
| 13895 | 13895 | ** and the one-based values are used internally. |
| 13896 | 13896 | */ |
| 13897 | 13897 | #ifndef SQLITE_DEFAULT_SYNCHRONOUS |
| 13898 | | -# define SQLITE_DEFAULT_SYNCHRONOUS (PAGER_SYNCHRONOUS_FULL-1) |
| 13898 | +# define SQLITE_DEFAULT_SYNCHRONOUS 2 |
| 13899 | 13899 | #endif |
| 13900 | 13900 | #ifndef SQLITE_DEFAULT_WAL_SYNCHRONOUS |
| 13901 | 13901 | # define SQLITE_DEFAULT_WAL_SYNCHRONOUS SQLITE_DEFAULT_SYNCHRONOUS |
| 13902 | 13902 | #endif |
| 13903 | 13903 | |
| | @@ -111279,10 +111279,12 @@ |
| 111279 | 111279 | /* Version 3.12.0 and later */ |
| 111280 | 111280 | int (*system_errno)(sqlite3*); |
| 111281 | 111281 | /* Version 3.14.0 and later */ |
| 111282 | 111282 | int (*trace_v2)(sqlite3*,unsigned,int(*)(unsigned,void*,void*,void*),void*); |
| 111283 | 111283 | char *(*expanded_sql)(sqlite3_stmt*); |
| 111284 | + /* Version 3.18.0 and later */ |
| 111285 | + void (*set_last_insert_rowid)(sqlite3*,sqlite3_int64); |
| 111284 | 111286 | }; |
| 111285 | 111287 | |
| 111286 | 111288 | /* |
| 111287 | 111289 | ** This is the function signature used for all extension entry points. It |
| 111288 | 111290 | ** is also defined in the file "loadext.c". |
| | @@ -111537,10 +111539,12 @@ |
| 111537 | 111539 | /* Version 3.12.0 and later */ |
| 111538 | 111540 | #define sqlite3_system_errno sqlite3_api->system_errno |
| 111539 | 111541 | /* Version 3.14.0 and later */ |
| 111540 | 111542 | #define sqlite3_trace_v2 sqlite3_api->trace_v2 |
| 111541 | 111543 | #define sqlite3_expanded_sql sqlite3_api->expanded_sql |
| 111544 | +/* Version 3.18.0 and later */ |
| 111545 | +#define sqlite3_set_last_insert_rowid sqlite3_api->set_last_insert_rowid |
| 111542 | 111546 | #endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */ |
| 111543 | 111547 | |
| 111544 | 111548 | #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) |
| 111545 | 111549 | /* This case when the file really is being compiled as a loadable |
| 111546 | 111550 | ** extension */ |
| | @@ -111962,11 +111966,13 @@ |
| 111962 | 111966 | sqlite3_db_cacheflush, |
| 111963 | 111967 | /* Version 3.12.0 and later */ |
| 111964 | 111968 | sqlite3_system_errno, |
| 111965 | 111969 | /* Version 3.14.0 and later */ |
| 111966 | 111970 | sqlite3_trace_v2, |
| 111967 | | - sqlite3_expanded_sql |
| 111971 | + sqlite3_expanded_sql, |
| 111972 | + /* Version 3.18.0 and later */ |
| 111973 | + sqlite3_set_last_insert_rowid |
| 111968 | 111974 | }; |
| 111969 | 111975 | |
| 111970 | 111976 | /* |
| 111971 | 111977 | ** Attempt to load an SQLite extension library contained in the file |
| 111972 | 111978 | ** zFile. The entry point is zProc. zProc may be 0 in which case a |
| | @@ -180265,10 +180271,11 @@ |
| 180265 | 180271 | ){ |
| 180266 | 180272 | JsonParse x; /* The JSON that is being patched */ |
| 180267 | 180273 | JsonParse y; /* The patch */ |
| 180268 | 180274 | JsonNode *pResult; /* The result of the merge */ |
| 180269 | 180275 | |
| 180276 | + UNUSED_PARAM(argc); |
| 180270 | 180277 | if( jsonParse(&x, ctx, (const char*)sqlite3_value_text(argv[0])) ) return; |
| 180271 | 180278 | if( jsonParse(&y, ctx, (const char*)sqlite3_value_text(argv[1])) ){ |
| 180272 | 180279 | jsonParseReset(&x); |
| 180273 | 180280 | return; |
| 180274 | 180281 | } |
| | @@ -198248,11 +198255,11 @@ |
| 198248 | 198255 | int nArg, /* Number of args */ |
| 198249 | 198256 | sqlite3_value **apUnused /* Function arguments */ |
| 198250 | 198257 | ){ |
| 198251 | 198258 | assert( nArg==0 ); |
| 198252 | 198259 | UNUSED_PARAM2(nArg, apUnused); |
| 198253 | | - sqlite3_result_text(pCtx, "fts5: 2017-03-24 19:45:05 c2c3dd84534bb5ea81c974847b74a166c9cba1545fc749ce625929f303bf22e4", -1, SQLITE_TRANSIENT); |
| 198260 | + sqlite3_result_text(pCtx, "fts5: 2017-03-28 18:48:43 424a0d380332858ee55bdebc4af3789f74e70a2b3ba1cf29d84b9b4bcf3e2e37", -1, SQLITE_TRANSIENT); |
| 198254 | 198261 | } |
| 198255 | 198262 | |
| 198256 | 198263 | static int fts5Init(sqlite3 *db){ |
| 198257 | 198264 | static const sqlite3_module fts5Mod = { |
| 198258 | 198265 | /* iVersion */ 2, |
| 198259 | 198266 | |