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:
@@ -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!";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user