mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix SQL Query
This commit is contained in:
parent
afc13e70b9
commit
d8d2d36638
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user