diff --git a/src/Connection/Driver.php b/src/Connection/Driver.php index 157628b..1883d44 100644 --- a/src/Connection/Driver.php +++ b/src/Connection/Driver.php @@ -45,6 +45,13 @@ protected function connect() { Connection::ATTR_ERRMODE => Connection::ERRMODE_EXCEPTION, ]; + if($this->settings->getSchema() === Settings::DRIVER_MYSQL) { + $options[Connection::MYSQL_ATTR_INIT_COMMAND] + = "SET SESSION collation_connection='" + . $this->settings->getCollation() + . "'"; + } + $this->connection = new Connection( $this->settings->getConnectionString(), $this->settings->getUsername(),