fix(configuration): Allow non persistent SQL connections

This commit is contained in:
Alexis Toulotte 2024-08-30 11:10:25 +11:00
parent 2f4fa349ec
commit 05644d39f8

View File

@ -72,7 +72,9 @@ class Database extends AbstractData
// set default options // set default options
$options['opt'][PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; $options['opt'][PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION;
$options['opt'][PDO::ATTR_EMULATE_PREPARES] = false; $options['opt'][PDO::ATTR_EMULATE_PREPARES] = false;
if (!array_key_exists(PDO::ATTR_PERSISTENT, $options['opt'])) {
$options['opt'][PDO::ATTR_PERSISTENT] = true; $options['opt'][PDO::ATTR_PERSISTENT] = true;
}
$db_tables_exist = true; $db_tables_exist = true;
// setup type and dabase connection // setup type and dabase connection