Commit e878cd74 authored by Steve Müller's avatar Steve Müller

set mysqli driver options before real connect

parent f1a8b20a
...@@ -48,6 +48,8 @@ class MysqliConnection implements Connection, PingableConnection ...@@ -48,6 +48,8 @@ class MysqliConnection implements Connection, PingableConnection
$this->_conn = mysqli_init(); $this->_conn = mysqli_init();
$this->setDriverOptions($driverOptions);
$previousHandler = set_error_handler(function () { $previousHandler = set_error_handler(function () {
}); });
...@@ -62,8 +64,6 @@ class MysqliConnection implements Connection, PingableConnection ...@@ -62,8 +64,6 @@ class MysqliConnection implements Connection, PingableConnection
if (isset($params['charset'])) { if (isset($params['charset'])) {
$this->_conn->set_charset($params['charset']); $this->_conn->set_charset($params['charset']);
} }
$this->setDriverOptions($driverOptions);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment