Skip to content

Commit

Permalink
Re-enabled PDO::ATTR_PERSISTENT => true on model.php based on reports…
Browse files Browse the repository at this point in the history
… that code generator was no longer executing queries.
  • Loading branch information
trongate committed Oct 16, 2019
1 parent 38cb51f commit d389dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/Model.php
Expand Up @@ -16,7 +16,7 @@ public function __construct() {

$dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->dbname;
$options = array(
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_PERSISTENT => true,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
);

Expand Down

0 comments on commit d389dc2

Please sign in to comment.