Allow db->set_timeout(null) to disable DB timeouts, see #874

This commit is contained in:
Shish
2021-09-22 15:42:41 +01:00
parent 9e52434480
commit 3bb1566df2
7 changed files with 13 additions and 12 deletions

View File

@@ -534,7 +534,7 @@ class Ratings extends Extension
break;
}
$database->set_timeout(300000); // These updates can take a little bit
$database->set_timeout(null); // These updates can take a little bit
$database->execute("UPDATE images SET rating = :new WHERE rating = :old", ["new"=>'?', "old"=>'u' ]);