Skip to content
Snippets Groups Projects
Commit 01d22e25 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

PDO: switch error reporting to exceptions

parent de1b9acb
No related branches found
No related tags found
1 merge request!1Update 19.2
......@@ -63,7 +63,7 @@ class Db
exit(101);
}
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if (DB_TYPE == "pgsql") {
......@@ -102,4 +102,4 @@ class Db
return self::$instance->pdo;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment