diff --git a/embed/bcw2/bcw2.wasm b/embed/bcw2/bcw2.wasm index f4b0653..d595d67 100755 Binary files a/embed/bcw2/bcw2.wasm and b/embed/bcw2/bcw2.wasm differ diff --git a/embed/exports.txt b/embed/exports.txt index 597c795..84d6102 100644 --- a/embed/exports.txt +++ b/embed/exports.txt @@ -80,6 +80,7 @@ sqlite3_interrupt sqlite3_invoke_busy_handler_go sqlite3_last_insert_rowid sqlite3_limit +sqlite3_log_go sqlite3_malloc64 sqlite3_open_v2 sqlite3_overload_function diff --git a/embed/sqlite3.wasm b/embed/sqlite3.wasm index 44deb9e..713fc06 100755 Binary files a/embed/sqlite3.wasm and b/embed/sqlite3.wasm differ diff --git a/sqlite3/hooks.c b/sqlite3/hooks.c index 73933ef..b87cf79 100644 --- a/sqlite3/hooks.c +++ b/sqlite3/hooks.c @@ -19,6 +19,10 @@ void go_log(void *, int, const char *); unsigned int go_autovacuum_pages(void *, const char *, unsigned int, unsigned int, unsigned int); +void sqlite3_log_go(int iErrCode, const char *zMsg) { + sqlite3_log(iErrCode, "%s", zMsg); +} + void sqlite3_progress_handler_go(sqlite3 *db, int n) { sqlite3_progress_handler(db, n, go_progress_handler, /*arg=*/NULL); }