mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 12:21:52 +02:00
* Don't retry on empty SQL error.
This commit is contained in:
committed by
Michael Zanetti
parent
8c5ec2bc23
commit
02dee0ec06
@@ -149,7 +149,8 @@ TomahawkSqlQuery::showError()
|
|||||||
tLog() << endl << "*** DATABASE ERROR ***" << endl
|
tLog() << endl << "*** DATABASE ERROR ***" << endl
|
||||||
<< lastQuery() << endl
|
<< lastQuery() << endl
|
||||||
<< "boundValues:" << boundValues() << endl
|
<< "boundValues:" << boundValues() << endl
|
||||||
<< lastError().text() << endl;
|
<< lastError().text() << endl
|
||||||
|
<< lastError().databaseText() << endl;
|
||||||
|
|
||||||
Q_ASSERT( false );
|
Q_ASSERT( false );
|
||||||
}
|
}
|
||||||
@@ -160,5 +161,5 @@ TomahawkSqlQuery::isBusyError( const QSqlError& error ) const
|
|||||||
{
|
{
|
||||||
const QString text = error.text().trimmed().toLower();
|
const QString text = error.text().trimmed().toLower();
|
||||||
|
|
||||||
return ( text.contains( "locked" ) || text.contains( "busy" ) || text.isEmpty() );
|
return ( text.contains( "locked" ) || text.contains( "busy" ) );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user