Make more proper MySQL tests.
This commit is contained in:
parent
cadbd42ce2
commit
8b17aa0854
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ DatabaseFactory::MySQLError DatabaseFactory::mysqlTestConnection(const QString &
|
|||
database.setPassword(password);
|
||||
database.setDatabaseName(w_database);
|
||||
|
||||
if (database.open()) {
|
||||
if (database.open() && !database.lastError().isValid()) {
|
||||
// Connection succeeded, clean up the mess and return OK status.
|
||||
database.close();
|
||||
return MySQLOk;
|
||||
|
|
Loading…
Add table
Reference in a new issue