Skip to content

Commit

Permalink
Added escape character.
Browse files Browse the repository at this point in the history
  • Loading branch information
hschletz committed Oct 28, 2020
1 parent 708b254 commit bd2bdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Column/Pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function _parseDefault($data)
{
parent::_parseDefault($data);
// Extract value from typed defaults
if (preg_match("/^('(.*)'|NULL)::$data[data_type]$/", $this->_default, $matches)) {
if (preg_match("/^('(.*)'|NULL)::$data[data_type]\$/", $this->_default, $matches)) {
if ($matches[1] == 'NULL') {
$this->_default = null;
} else {
Expand Down

0 comments on commit bd2bdf5

Please sign in to comment.