Fix SQL Query

Esse commit está contido em:
Olivier Goffart
2013-10-03 23:00:47 +02:00
commit d8d2d36638
+2 -2
Ver Arquivo
@@ -168,8 +168,8 @@ bool SyncJournalDb::deleteFileRecord(const QString& filename)
if( checkConnect() ) {
QSqlQuery query( "DELETE FROM metadata WHERE phash=:phash" );
query.bindValue( ":phash", QVariant::fromValue(phash) );
QSqlQuery query( "DELETE FROM metadata WHERE phash=?" );
query.bindValue( 0, QString::number(phash) );
if( !query.exec() ) {
qWarning() << "Exec error of SQL statement: " << query.lastQuery() << " : " << query.lastError().text();