diff --git a/embed/sqlite3.wasm b/embed/sqlite3.wasm index 5e3b494..dbde2a2 100755 Binary files a/embed/sqlite3.wasm and b/embed/sqlite3.wasm differ diff --git a/sqlite3/main.c b/sqlite3/main.c index cda7656..0769a59 100644 --- a/sqlite3/main.c +++ b/sqlite3/main.c @@ -1,3 +1,4 @@ +#include #include #include @@ -95,7 +96,7 @@ int sqlite3_os_init() { .xCurrentTime = go_current_time, .xCurrentTimeInt64 = go_current_time_64, }; - return sqlite3_vfs_register(&go_vfs, /*default=*/1); + return sqlite3_vfs_register(&go_vfs, /*default=*/true); } sqlite3_destructor_type malloc_destructor = &free; \ No newline at end of file diff --git a/sqlite3/sqlite_cfg.h b/sqlite3/sqlite_cfg.h index e558235..664377d 100644 --- a/sqlite3/sqlite_cfg.h +++ b/sqlite3/sqlite_cfg.h @@ -27,10 +27,6 @@ // Need this to access WAL databases without the use of shared memory. #define SQLITE_DEFAULT_LOCKING_MODE 1 -// Go uses UTF-8 everywhere. -#define SQLITE_OMIT_UTF16 -// Remove some testing code. -#define SQLITE_UNTESTABLE // Implemented in Go. int localtime_s(struct tm *const pTm, time_t const *const pTime); \ No newline at end of file