Commit 1a61c012 authored by unknown's avatar unknown

a fix in libmysql.c


libmysql/libmysql.c:
  This crashed my mysql client.
  I hope that fix is correct.
parent 0c1e0663
......@@ -1173,7 +1173,7 @@ unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields,
if (INTERNAL_NUM_FIELD(field))
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]);
else
field->def=0;
field->max_length= 0;
......
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