mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
14 lines
462 B
Diff
14 lines
462 B
Diff
# Replace sqliteDefaultBusyCallback, so Go can
|
|
# handle, and interrupt, sqlite3_busy_timeout.
|
|
--- sqlite3.c.orig
|
|
+++ sqlite3.c
|
|
@@ -183054,7 +183054,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{
|