mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed charsetnr sent to the client
This commit is contained in:
@ -530,7 +530,10 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
|
||||
/* Store fixed length fields */
|
||||
pos= (char*) local_packet->ptr()+local_packet->length();
|
||||
*pos++= 12; // Length of packed fields
|
||||
int2store(pos, field.charsetnr);
|
||||
if (item->collation.collation == &my_charset_bin || thd_charset == NULL)
|
||||
int2store(pos, field.charsetnr);
|
||||
else
|
||||
int2store(pos, thd_charset->number);
|
||||
int4store(pos+2, field.length);
|
||||
pos[6]= field.type;
|
||||
int2store(pos+7,field.flags);
|
||||
|
Reference in New Issue
Block a user