Commit abd77bc5 authored by unknown's avatar unknown

Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0

into  mysql.com:/usr/home/ram/work/5.0.b14207

parents 10a889a5 e19b7f19
......@@ -2559,11 +2559,11 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
is_blob= (field->type() == FIELD_TYPE_BLOB);
if (field->has_charset() || is_blob)
{
longlong c_octet_len= is_blob ? (longlong) field->max_length() :
longlong char_max_len= is_blob ? (longlong) field->max_length() :
(longlong) field->max_length()/field->charset()->mbmaxlen;
table->field[8]->store((longlong) field->max_length(), TRUE);
table->field[8]->store(char_max_len, TRUE);
table->field[8]->set_notnull();
table->field[9]->store(c_octet_len, TRUE);
table->field[9]->store((longlong) field->max_length(), TRUE);
table->field[9]->set_notnull();
}
......
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