mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
Fix #1439 incorrect parsing of default value in some queries
This commit is contained in:
parent
2a87c060b9
commit
57b356f5fa
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ class VariableBase
|
||||||
{
|
{
|
||||||
return [true, Query::quoteName($this->default)];
|
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)];
|
return [true, Query::quoteName($this->default)];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue