1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 04:51:53 +02:00

* Re-bind values for failed TomahawkSqlQueries.

This commit is contained in:
Christian Muehlhaeuser 2012-06-26 20:34:23 +02:00
parent 1369e838eb
commit cb578a607a

@ -87,7 +87,15 @@ TomahawkSqlQuery::exec()
if ( lastError().text().toLower().contains( "no query" ) )
{
tDebug() << Q_FUNC_INFO << "Re-preparing query!";
QMap< QString, QVariant > bv = boundValues();
prepare( m_query );
foreach ( const QString& key, bv.keys() )
{
tDebug() << Q_FUNC_INFO << "Rebinding key" << key << "with value" << bv.value( key );
bindValue( key, bv.value( key ) );
}
}
if ( isBusyError( lastError() ) )