Support SQL expressions in the "default" attribute of XML query

This commit is contained in:
Kijin Sung 2025-10-23 10:53:12 +09:00
parent ad293fa4d0
commit 978aecd7a8

View file

@ -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];
}