| Bug #28168 | odbc, non 7-bit password, connection failed | ||
|---|---|---|---|
| Submitted: | 30 Apr 2007 20:25 | Modified: | 18 Nov 16:14 |
| Reporter: | Susanne Ebrecht | ||
| Status: | Need Doc Info | ||
| Category: | Connector/ODBC | Severity: | S3 (Non-critical) |
| Version: | 5.1 | OS: | Any |
| Assigned to: | Target Version: | ||
| Triage: | D2 (Serious) | ||
[30 Apr 2007 20:25]
Susanne Ebrecht
[30 Apr 2007 20:30]
Susanne Ebrecht
It is a connector bug
[30 Apr 2007 20:36]
Andrey Hristov
The character set of the connection should be set in some way before attempting to call mysql_real_connect() from inside connector/odbc because the character set is sent during the authentication handshake.
[3 May 2007 10:30]
Tonci Grgin
Hi Susanne and thanks for your report. Since connector/ODBC v5 is still beta, please consider lowering severity to S4 (feature request). As Andrey already explained we do need configuration screen in v5 like 3.51 has (Connect Options tab / Initial Statement field).
[22 Oct 2007 17:17]
Susanne Ebrecht
I verified this against MyODBC version 5.1. mysql> grant all on *.* to müller@'localhost'; $ mysql -u müller test mysql> select user(); müller@localhost mysql> show grants; GRANT ALL PRIVILEGES ON *.* TO 'müller'@'localhost' changing my .odbc.ini: User = müller Try to execute some tests ... Connection failed.
[18 Jan 2008 22:09]
Jess Balint
Connecting with Unicode username and password works fine. It's stored and retrieved
correctly by the Windows GUI. This patch fixes the short-period when the character set is
utf8 so that we convert the error message correctly.
Index: driver/connect.c
===================================================================
--- driver/connect.c (revision 1006)
+++ driver/connect.c (working copy)
@@ -210,6 +210,7 @@
We always use utf8 for the connection, and change it afterwards if needed.
*/
mysql_options(mysql, MYSQL_SET_CHARSET_NAME, "utf8");
+ dbc->cxn_charset_info= utf8_charset_info;
if (!mysql_real_connect(mysql,
ds_get_utf8attr(ds->server, &ds->server8),
[23 Feb 2008 20:42]
Jess Balint
fix + test
Attachment: bug28168.diff (application/octet-stream, text), 3.60 KiB.
[25 Feb 2008 23:58]
Jim Winstead
don't forget to remove the user in the test.
[16 Nov 19:25]
Lawrin Novitsky
pushed as rev#857(5.1.7)
