Bug #52082 [Opn->Ver]: character_set_client & character_set_connection reset after mysqli_change_user

From: Date: Mon, 14 Jun 2010 16:28:41 +0000
Subject: Bug #52082 [Opn->Ver]: character_set_client & character_set_connection reset after mysqli_change_user
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151484@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52082&edit=1 ID: 52082 Updated by: andrey@php.net Reported by: andrey@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] andrey@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

« previous php.bugs (#151484) next »