Browse Source

Set SQLite3 database timout to one minute

Resolves #206.
shortcut
Trevor Slocum 1 year ago
parent
commit
75af600f7f
  1. 2
      inc/database/sqlite3_link.php

2
inc/database/sqlite3_link.php

@ -12,6 +12,8 @@ if (!$db) {
fancyDie("Could not connect to database: " . $db->lastErrorMsg());
}
$db->busyTimeout(60000);
// Create tables (when necessary)
$result = $db->query("SELECT name FROM sqlite_master WHERE type='table' AND name='" . TINYIB_DBACCOUNTS . "'");
if (!$result->fetchArray()) {

Loading…
Cancel
Save