Skip to content

Commit

Permalink
Mysql: Transmit timezone value not as prepared value
Browse files Browse the repository at this point in the history
fixes #36
  • Loading branch information
nilmerg committed Jul 19, 2021
1 parent e8bddd5 commit c832144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Mysql extends BaseAdapter

public function setClientTimezone(Connection $db)
{
$db->prepexec('SET time_zone = ?', [$this->getTimezoneOffset()]);
$db->exec('SET time_zone = ' . $db->quote($this->getTimezoneOffset()));

return $this;
}
Expand Down

0 comments on commit c832144

Please sign in to comment.