Commit f0fc61e0 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fix for columns being not null and having integer defaults.

parent 4239c3ee
......@@ -439,7 +439,7 @@ class XMLDBgenerator {
$default = null;
if ($xmldb_field->getDefault() != NULL) {
if ($xmldb_field->getDefault() !== NULL) {
if ($xmldb_field->getType() == XMLDB_TYPE_CHAR ||
$xmldb_field->getType() == XMLDB_TYPE_TEXT) {
$default = "'" . addslashes($xmldb_field->getDefault()) . "'";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment