Skip to content

Commit 831f35f

Browse files
author
stoeckerb
committed
Update Qt 6.2.1
1 parent cf9b384 commit 831f35f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysql/qsql_mysql.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,10 +1278,10 @@ bool QMYSQLDriver::open(const QString& db,
12781278
optionFlags);
12791279

12801280
// now ask the server to match the charset we selected
1281-
if (!cs || mysql_set_character_set(d->mysql, cs->csname)) {
1281+
if (!cs || mysql_set_character_set(d->mysql, cs->csname) != 0) {
12821282
bool ok = false;
12831283
for (const char *p : wanted_charsets) {
1284-
if (mysql_set_character_set(d->mysql, p)) {
1284+
if (mysql_set_character_set(d->mysql, p) == 0) {
12851285
ok = true;
12861286
break;
12871287
}

0 commit comments

Comments
 (0)