Retry on parameter count mismatch as well
This commit is contained in:
parent
12cf91e4b2
commit
9c7c91dac9
@ -88,7 +88,10 @@ bool ci_query_exec(QSqlQuery* query, const QString query_string) {
|
|||||||
|
|
||||||
QSqlError error = query->lastError();
|
QSqlError error = query->lastError();
|
||||||
if (error.text().contains("database is locked")) std::this_thread::sleep_for(std::chrono::milliseconds(get_delay(attempt)));
|
if (error.text().contains("database is locked")) std::this_thread::sleep_for(std::chrono::milliseconds(get_delay(attempt)));
|
||||||
else break;
|
else if (error.text().contains("Parameter count mismatch")) {
|
||||||
|
if (attempt > 15) break;
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(get_delay(attempt)));
|
||||||
|
} else break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user