Support utf16 DBs.

This commit is contained in:
Nuno Cruces
2023-02-14 01:06:17 +00:00
parent f11d294825
commit fd1244c471
3 changed files with 2 additions and 5 deletions

Binary file not shown.

View File

@@ -1,3 +1,4 @@
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
@@ -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;

View File

@@ -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);