Branch: Tag:

2014-12-04

2014-12-04 19:23:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Sql.mysql: Fix broken charset switch.

If the current send_charset was not "utf8", and the query was latin1-
compatible, the broken query "SET character_set_client=0" could be
sent by the glue code.

Fixes "big_query(): Query "SET character_set_client=0" failed (Unknown character set: '0')".

665:    } \    \    else if (send_charset) { \ -  string new_send_charset; \ +  string new_send_charset = send_charset; \    \    if (utf8_mode & LATIN1_UNICODE_ENCODE_MODE) { \    if (String.width (query) == 8) \