1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 21:27:58 +02:00

* Retry on this sql error, too.

This commit is contained in:
Christian Muehlhaeuser
2012-06-27 05:11:21 +02:00
parent 393ec8a53d
commit 23f47f82a6

View File

@@ -84,7 +84,8 @@ TomahawkSqlQuery::exec()
unsigned int retries = 0; unsigned int retries = 0;
while ( !QSqlQuery::exec() && ++retries < 10 ) while ( !QSqlQuery::exec() && ++retries < 10 )
{ {
if ( lastError().text().toLower().contains( "no query" ) ) if ( lastError().text().toLower().contains( "no query" ) ||
lastError().text().toLower().contains( "parameter count mismatch" ) )
{ {
tDebug() << Q_FUNC_INFO << "Re-preparing query!"; tDebug() << Q_FUNC_INFO << "Re-preparing query!";