1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-28 11:42:42 +01: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;
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!";