Added PDO::ATTR_EMULATE_PREPARES => false

This commit is contained in:
Igor Scheller 2017-03-02 12:48:48 +01:00
parent 68da2a4eb8
commit 37c32ad08f
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ Db::connect(
config('database')['pw'] config('database')['pw']
) || die('Error: Unable to connect to database'); ) || die('Error: Unable to connect to database');
Db::getPdo()->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); Db::getPdo()->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Db::getPdo()->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
/** /**