1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge bk@192.168.21.1:mysql-4.1

into  mysql.com:/home/hf/work/mysql-4.1.19983
This commit is contained in:
holyfoot/hf@mysql.com/deer.(none)
2006-07-20 16:03:21 +05:00
2 changed files with 8 additions and 2 deletions

View File

@ -674,10 +674,14 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
} }
else else
{ {
uint max_char_len;
/* With conversion */ /* With conversion */
client_field->charsetnr= thd_cs->number; client_field->charsetnr= thd_cs->number;
uint char_len= server_field.length / item->collation.collation->mbmaxlen; max_char_len= (server_field.type >= (int) MYSQL_TYPE_TINY_BLOB &&
client_field->length= char_len * thd_cs->mbmaxlen; server_field.type <= (int) MYSQL_TYPE_BLOB) ?
server_field.length / item->collation.collation->mbminlen :
server_field.length / item->collation.collation->mbmaxlen;
client_field->length= max_char_len * thd_cs->mbmaxlen;
} }
client_field->type= server_field.type; client_field->type= server_field.type;
client_field->flags= server_field.flags; client_field->flags= server_field.flags;

View File

@ -12125,7 +12125,9 @@ static struct my_tests_st my_tests[]= {
{ "test_bug8378", test_bug8378 }, { "test_bug8378", test_bug8378 },
{ "test_bug9735", test_bug9735 }, { "test_bug9735", test_bug9735 },
{ "test_bug11183", test_bug11183 }, { "test_bug11183", test_bug11183 },
#ifndef EMBEDDED_LIBRARY
{ "test_bug12744", test_bug12744 }, { "test_bug12744", test_bug12744 },
#endif
{ "test_bug12001", test_bug12001 }, { "test_bug12001", test_bug12001 },
{ "test_bug11718", test_bug11718 }, { "test_bug11718", test_bug11718 },
{ "test_bug12925", test_bug12925 }, { "test_bug12925", test_bug12925 },