diff --git a/src/Connection.php b/src/Connection.php index d733166..ef77ac1 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -160,7 +160,7 @@ public function connect() $this->pdo = $this->createPdoAdapter(); - if ($this->config->charset !== null) { + if (! empty($this->config->charset)) { $this->exec(sprintf('SET NAMES %s', $this->pdo->quote($this->config->charset))); }