We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9b384 commit 831f35fCopy full SHA for 831f35f
mysql/qsql_mysql.cpp
@@ -1278,10 +1278,10 @@ bool QMYSQLDriver::open(const QString& db,
1278
optionFlags);
1279
1280
// now ask the server to match the charset we selected
1281
- if (!cs || mysql_set_character_set(d->mysql, cs->csname)) {
+ if (!cs || mysql_set_character_set(d->mysql, cs->csname) != 0) {
1282
bool ok = false;
1283
for (const char *p : wanted_charsets) {
1284
- if (mysql_set_character_set(d->mysql, p)) {
+ if (mysql_set_character_set(d->mysql, p) == 0) {
1285
ok = true;
1286
break;
1287
}
0 commit comments