mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Retry on this sql error, too.
This commit is contained in:
@@ -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!";
|
||||
|
||||
|
Reference in New Issue
Block a user