Bug #52082 [Ver->Csd]: character_set_client & character_set_connection reset after mysqli_change_user
| From: | andrey@php.net | Date: | Tue, 06 Jul 2010 11:03:51 +0000 |
| Subject: | Bug #52082 [Ver->Csd]: 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-152131@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: 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] andrey@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] 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