1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Add an experimental busy_timeout pragma to facilitate access to the

sqlite3_busy_timeout() interfaces for programmers that are working from
behind a language wrapper that does not expose that interface.

FossilOrigin-Name: 22ebc668516bc3dd5782d6d3d42dc7fd2eed7d79
This commit is contained in:
drh
2012-09-07 16:46:59 +00:00
parent 37f58e9902
commit f360396c47
5 changed files with 52 additions and 9 deletions

View File

@@ -1156,6 +1156,7 @@ int sqlite3_busy_timeout(sqlite3 *db, int ms){
db->busyTimeout = ms;
sqlite3_busy_handler(db, sqliteDefaultBusyCallback, (void*)db);
}else{
db->busyTimeout = 0;
sqlite3_busy_handler(db, 0, 0);
}
return SQLITE_OK;