Martin Stjernholm wrote:
Aha, I somehow thought the setting would survive the reconnect if mysql_set_character_set is used. Of course it doesn't. Then the approach is a bit different. Please try this patch instead.
Great, seems to work. For me the charset is going into the connect options (i.e. RECONNECT_CHARSET_IS_SET), i guess, so i am not seeing any SET NAMES magic after reconnect.