Fix #1439 incorrect parsing of default value in some queries

This commit is contained in:
Kijin Sung 2020-10-21 23:01:34 +09:00
parent 2a87c060b9
commit 57b356f5fa

View file

@ -328,7 +328,7 @@ class VariableBase
{
return [true, Query::quoteName($this->default)];
}
elseif (isset($column) && preg_match('/_srl$/', $column) && !is_numeric($this->default))
elseif (isset($column) && preg_match('/_srl$/', $column) && !is_numeric($this->default) && !preg_match('/^[a-z0-9_]+\([0-9]*\)$/', $this->default))
{
return [true, Query::quoteName($this->default)];
}