-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.2
As described in MDL-9658, the way databases are created at the moment it's not possible to create a CHAR column that uses the DEFAULT NULL clause. Instead, those columns are declared as DEFAULT '', which is misleading when those columns are defined using NOTNULL="false".
The ideal situation would be to allow declarations such as the following to work as expected:
<FIELD NAME="name" TYPE="char" LENGTH="100" NOTNULL="false" SEQUENCE="false"/>
And use the following if the desired outcome is the DEFAULT '' clause:
<FIELD NAME="name" TYPE="char" LENGTH="100" NOTNULL="true" DEFAULT="" SEQUENCE="false"/>
However, doing this change now would break a lot of existing code, so this must be implemented as an opt-in first. Later on, this can be changed to opt-out. Eventually, this behavior could be deprecated entirely.
- will help resolve
-
MDL-9658 XMLEditor/XMLDB new features...
-
- Closed
-