Commit bbdb2d28 authored by unknown's avatar unknown

Fix for bugs #6955 SHOW PROCEDURE STATUS crashes the server,

#6950 mysql-nt.exe error when click on sql or database on mysql control center

parent 289d3b2e
......@@ -2942,10 +2942,12 @@ TABLE *create_schema_table(THD *thd, TABLE_LIST *table_list)
}
break;
default:
if (!(item= new Item_string("", fields_info->field_length, cs)))
/* this should be changed when Item_empty_string is fixed(in 4.1) */
if (!(item= new Item_empty_string("", 0, cs)))
{
DBUG_RETURN(0);
}
item->max_length= fields_info->field_length * cs->mbmaxlen;
item->set_name(fields_info->field_name,
strlen(fields_info->field_name), cs);
break;
......
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