diff --git a/common/framework/parsers/dbquery/VariableBase.php b/common/framework/parsers/dbquery/VariableBase.php index f4e29a0c5..419c74e95 100644 --- a/common/framework/parsers/dbquery/VariableBase.php +++ b/common/framework/parsers/dbquery/VariableBase.php @@ -383,6 +383,12 @@ class VariableBase } } + // If the default value is any other kind of SQL expression, return it as is. + if (isset($column) && preg_match('/^[A-Z_]+\([^)]+\)/', $this->default)) + { + return [true, $this->default]; + } + // Otherwise, just return the literal value. return [false, $this->default]; }