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:           Verified
+Status:           Closed
 Type:             Bug
 Package:          MySQLi related
 Operating System: All
 PHP Version:      5.3SVN-2010-06-14 (SVN)
 Assigned To:      mysql

 New Comment:

Already fixed and reported in NEWS. Closing.


Previous Comments:
------------------------------------------------------------------------
[2010-06-14 19:16:23] and...@php.net

Automatic comment from SVN on behalf of andrey
Revision: http://svn.php.net/viewvc/?view=revision&revision=300435
Log: Fixed bug #52082 (character_set_client &
character_set_connection reset after
mysqli_change_user())

libmysql >= 5.1.23 will PASS, older library versions will fail

------------------------------------------------------------------------
[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