Implement consistent behavior for ColumnDefinition::$defaultValue #19
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
slendium/ocd-mariadb#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the
$defaultValueofColumnDefinitionproperty gets filled differently depending on whether or not theColumnDefinitionis created from anINFORMATION_SCHEMA.COLUMNSrow or a schema field.The information schema row can contain expressions, such as
concat('a', 'b')or quoted literal strings (see the docs for examples), while the schema field's default value comes from a PHP value (which is always a literal).Since this would lead to issues during schema upgrades, this difference needs to be resolved.
Handle ColumnDefinition::$defaultValue properlyto Implement consistent behavior for ColumnDefinition::$defaultValue