Commit ffb74219 authored by ramil@mysql.com's avatar ramil@mysql.com

NO_DEFAULT_VALUE_FLAG and BLOB_FLAG combined

parent b11d04e5
...@@ -8487,8 +8487,8 @@ create_field::create_field(Field *old_field,Field *orig_field) ...@@ -8487,8 +8487,8 @@ create_field::create_field(Field *old_field,Field *orig_field)
else else
interval=0; interval=0;
def=0; def=0;
if (!(flags & NO_DEFAULT_VALUE_FLAG) && if (!(flags & (NO_DEFAULT_VALUE_FLAG | BLOB_FLAG)) &&
!old_field->is_real_null() && ! (flags & BLOB_FLAG) && !old_field->is_real_null() &&
old_field->ptr && orig_field) old_field->ptr && orig_field)
{ {
char buff[MAX_FIELD_WIDTH],*pos; char buff[MAX_FIELD_WIDTH],*pos;
......
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