Edit report at http://bugs.php.net/bug.php?id=52082&edit=1

 ID:               52082
 Updated by:       and...@php.net
 Reported by:      and...@php.net
 Summary:          character_set_client & character_set_connection reset
                   after mysqli_change_user
-Status:           Open
+Status:           Verified
 Type:             Bug
 Package:          MySQLi related
 Operating System: All
 PHP Version:      5.3SVN-2010-06-14 (SVN)
-Assigned To:      
+Assigned To:      mysql



Previous Comments:
------------------------------------------------------------------------
[2010-06-14 18:28:21] and...@php.net

Description:
------------
After calling mysqli_change_user() character_set_client and
character_set_result are reset to the server defaults. If the client has
set a different one with mysqli_options() or mysqli_set_character_set()
it will be lost.

The MySQL server supports from version 5.1.23 setting of a charset
during COM_CHANGE_USER, an extension in the protocol. Older versions
doesn't support it and need explicit call to mysql_set_character_set().

Expected result:
----------------
Keep the old character_set_client/connection.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52082&edit=1

Reply via email to