mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 14:09:13 +00:00
14 lines
476 B
Diff
14 lines
476 B
Diff
# Replace sqliteDefaultBusyCallback.
|
|
# This patch allows Go to handle (and interrupt) sqlite3_busy_timeout.
|
|
--- sqlite3.c.orig
|
|
+++ sqlite3.c
|
|
@@ -181614,7 +181614,7 @@
|
|
if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
|
|
#endif
|
|
if( ms>0 ){
|
|
- sqlite3_busy_handler(db, (int(*)(void*,int))sqliteDefaultBusyCallback,
|
|
+ sqlite3_busy_handler(db, (int(*)(void*,int))sqliteBusyCallback,
|
|
(void*)db);
|
|
db->busyTimeout = ms;
|
|
}else{
|