Added PDO::ATTR_EMULATE_PREPARES => false

main
Igor Scheller 8 years ago
parent 68da2a4eb8
commit 37c32ad08f

@ -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);
/** /**

Loading…
Cancel
Save