Skip to content

Commit

Permalink
Merge pull request #475 from r-dbi/f-sqlite-amalgamation-3440000
Browse files Browse the repository at this point in the history
feat: Upgrade bundled SQLite to 3.44.0
  • Loading branch information
aviator-app[bot] authored Nov 5, 2023
2 parents 1aa9506 + 54d4228 commit 265c2b2
Show file tree
Hide file tree
Showing 5 changed files with 4,314 additions and 2,364 deletions.
10 changes: 10 additions & 0 deletions src/vendor/extensions/csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,11 @@ static sqlite3_module CsvModule = {
0, /* xRollback */
0, /* xFindMethod */
0, /* xRename */
0, /* xSavepoint */
0, /* xRelease */
0, /* xRollbackTo */
0, /* xShadowName */
0 /* xIntegrity */
};

#ifdef SQLITE_TEST
Expand Down Expand Up @@ -929,6 +934,11 @@ static sqlite3_module CsvModuleFauxWrite = {
0, /* xRollback */
0, /* xFindMethod */
0, /* xRename */
0, /* xSavepoint */
0, /* xRelease */
0, /* xRollbackTo */
0, /* xShadowName */
0 /* xIntegrity */
};
#endif /* SQLITE_TEST */

Expand Down
3 changes: 2 additions & 1 deletion src/vendor/extensions/series.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ static sqlite3_module seriesModule = {
0, /* xSavepoint */
0, /* xRelease */
0, /* xRollbackTo */
0 /* xShadowName */
0, /* xShadowName */
0 /* xIntegrity */
};

#endif /* SQLITE_OMIT_VIRTUALTABLE */
Expand Down
6 changes: 6 additions & 0 deletions src/vendor/extensions/sqlite3ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ struct sqlite3_api_routines {
int (*is_interrupted)(sqlite3*);
/* Version 3.43.0 and later */
int (*stmt_explain)(sqlite3_stmt*,int);
/* Version 3.44.0 and later */
void *(*get_clientdata)(sqlite3*,const char*);
int (*set_clientdata)(sqlite3*, const char*, void*, void(*)(void*));
};

/*
Expand Down Expand Up @@ -693,6 +696,9 @@ typedef int (*sqlite3_loadext_entry)(
#define sqlite3_is_interrupted sqlite3_api->is_interrupted
/* Version 3.43.0 and later */
#define sqlite3_stmt_explain sqlite3_api->stmt_explain
/* Version 3.44.0 and later */
#define sqlite3_get_clientdata sqlite3_api->get_clientdata
#define sqlite3_set_clientdata sqlite3_api->set_clientdata
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */

#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
Expand Down
Loading

0 comments on commit 265c2b2

Please sign in to comment.