MySQL: remove left-over charset-setting code
Complements commit 472520afb9081856a2556c7df221c084a42a2d42. We were doing it twice. Change-Id: I4a40ccbd3321467a8429fffd169b05fa5e22f204 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
4ddbfb68f8
commit
65aca9a223
@ -1311,13 +1311,6 @@ bool QMYSQLDriver::open(const QString& db,
|
||||
return false;
|
||||
}
|
||||
|
||||
// force the communication to be utf8mb4 (only utf8mb4 supports 4-byte characters)
|
||||
if (mysql_set_character_set(d->mysql, "utf8mb4")) {
|
||||
// this failed, try forcing it to utf (BMP only)
|
||||
if (mysql_set_character_set(d->mysql, "utf8"))
|
||||
qWarning() << "MySQL: Unable to set the client character set to utf8.";
|
||||
}
|
||||
|
||||
d->preparedQuerysEnabled = checkPreparedQueries(d->mysql);
|
||||
|
||||
#if QT_CONFIG(thread)
|
||||
|
Loading…
x
Reference in New Issue
Block a user