Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.0
-
None
-
Windows Client:
- Visual Studio 2015 Community Edition, with the last update: 14.0.25424.00 Update 3
- Visual C++ 2015 00322-20000-00000-AA285
- Using the Windows Kit 10: 10.0.10586.0
- Mysql Connector/C 6.1.6
Linux Client:
- debian testing, libc6 2.23-1
- mysql client 5.6.30-1
MySQL Server: 5.6.28-1Windows Client: - Visual Studio 2015 Community Edition, with the last update: 14.0.25424.00 Update 3 - Visual C++ 2015 00322-20000-00000-AA285 - Using the Windows Kit 10: 10.0.10586.0 - Mysql Connector/C 6.1.6 Linux Client: - debian testing, libc6 2.23-1 - mysql client 5.6.30-1 MySQL Server: 5.6.28-1
-
e4bd73dc54542fe16121825c2a369b7f863e0de8 (qt/qtbase/dev)
Description
If you use a password containing non latin1 character connection will be trouble; given « é » as password:
- under Linux (with mysql client 5.6.30-1; under debian): all will be good
- under Windows (with Mysql Connector/C 6.1.6): impossible to connect
in C:/Qt/5.7/Src/qtbase/src/sql/drivers/mysql/qsql_mysql.cpp we can see in QMYSQLDriver::open:
- user.toLocal8Bit().constData()
- password.toLocal8Bit().constData()
For the current time I use QLatin1String to wrap the string under windows.
Attachments
For Gerrit Dashboard: QTBUG-55444 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
330394,4 | QSql/MariaDB/MySQL: use utf-8 as encoding for username and password | dev | qt/qtbase | Status: MERGED | +2 | 0 |
363881,2 | MySQL: properly fix setting the character set | dev | qt/qtbase | Status: MERGED | +2 | 0 |
364116,2 | MySQL: properly fix setting the character set | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |