]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/donate/templates/default/db-connect.inc.php.erb
Make sure we use the correct gem and bundler for blogs
[chef.git] / cookbooks / donate / templates / default / db-connect.inc.php.erb
index c437acb5b928a2bda83acbb9aeb646301a7b686d..c4cea1f935a30c1a369fdad68123fab895bb0f36 100644 (file)
@@ -3,4 +3,6 @@ $_DB_H = new mysqli('localhost','donate','<%= @passwords['database'] %>','donate
 if ($_DB_H->connect_errno) {
     die('DB Connect Error: ' . $_DB_H->connect_errno);
 }
 if ($_DB_H->connect_errno) {
     die('DB Connect Error: ' . $_DB_H->connect_errno);
 }
+$_DB_H->report_mode = MYSQLI_REPORT_ERROR;
+$_DB_H->query('set @@sql_mode = \'\'');
 $_DB_H->query('SET NAMES \'utf8\'');
 $_DB_H->query('SET NAMES \'utf8\'');