Merge pull request #1394 from alexistoulotte/fix/allow-non-persistent-sql-connection

Allow non persistent SQL connections
This commit is contained in:
El RIDO 2024-08-31 19:20:09 +02:00 committed by GitHub
commit 083632a074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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