Skip to content

Commit

Permalink
Connection: Don't accept the empty string as charset
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Jul 19, 2021
1 parent 203b735 commit e8bddd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

Expand Down

0 comments on commit e8bddd5

Please sign in to comment.