forked from Cavemanon/cavepaintings
Added set_timeout to database and engine
This commit is contained in:
@ -578,9 +578,7 @@ class Ratings extends Extension
|
||||
break;
|
||||
}
|
||||
|
||||
if ($database->get_driver_name()==DatabaseDriver::PGSQL) { // These updates can take a little bit
|
||||
$database->execute("SET statement_timeout TO 300000;");
|
||||
}
|
||||
$database->set_timeout(300000); // These updates can take a little bit
|
||||
|
||||
$database->execute("UPDATE images SET rating = :new WHERE rating = :old", ["new"=>'?', "old"=>'u' ]);
|
||||
|
||||
|
Reference in New Issue
Block a user