dbal icon indicating copy to clipboard operation
dbal copied to clipboard

Nullable columns without a default value

Open derrabus opened this issue 2 years ago • 0 comments

Feature Request

Q A
New Feature yes
RFC no

Summary

Originally reported by @janedbal in #5970.

Our Column class has the properties $_default and $_notnull which are interpreted like this:

$_notnull $_default Actual default
true any string literal the specified literal
true null No default
false any string literal the specified literal
false null null

A nullable column without a default cannot be modeled here which means that DBAL also cannot introspect such a column properly. See #5970 for a failing test.

derrabus avatar Jul 04 '23 07:07 derrabus