Commit 0d07df3d authored by unknown's avatar unknown

in 4.1 DATABASE() may be NULL

parent e1ee4117
...@@ -362,6 +362,7 @@ public: ...@@ -362,6 +362,7 @@ public:
void fix_length_and_dec() void fix_length_and_dec()
{ {
max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen; max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen;
maybe_null=1;
} }
const char *func_name() const { return "database"; } const char *func_name() const { return "database"; }
}; };
......
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