Commit 0ceba0e5 authored by venu@myvenu.com's avatar venu@myvenu.com

Fix to read the correct 'default value'

parent b6d08e4b
......@@ -1221,7 +1221,7 @@ unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields,
field->flags|= NUM_FLAG;
if (default_value && row->data[6])
{
field->def=strdup_root(alloc,(char*) row->data[8]);
field->def=strdup_root(alloc,(char*) row->data[6]);
field->def_length= lengths[6];
}
}
......
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