parseChecksumHeader(record._checksumHeader, &checksumType, &checksum);
int contentChecksumTypeId = mapChecksumType(checksumType);
_setFileRecordQuery->reset_and_clear_bindings();
- _setFileRecordQuery->bindValue(1, QString::number(phash));
+ _setFileRecordQuery->bindValue(1, phash);
_setFileRecordQuery->bindValue(2, plen);
_setFileRecordQuery->bindValue(3, record._path);
_setFileRecordQuery->bindValue(4, record._inode);
qlonglong phash = getPHash(filename);
_deleteFileRecordPhash->reset_and_clear_bindings();
- _deleteFileRecordPhash->bindValue(1, QString::number(phash));
+ _deleteFileRecordPhash->bindValue(1, phash);
if (!_deleteFileRecordPhash->exec()) {
return false;
if (!filename.isEmpty() && checkConnect()) {
_getFileRecordQuery->reset_and_clear_bindings();
- _getFileRecordQuery->bindValue(1, QString::number(phash));
+ _getFileRecordQuery->bindValue(1, phash);
if (!_getFileRecordQuery->exec()) {
locker.unlock();
auto &query = _setFileRecordChecksumQuery;
query->reset_and_clear_bindings();
- query->bindValue(1, QString::number(phash));
+ query->bindValue(1, phash);
query->bindValue(2, contentChecksum);
query->bindValue(3, checksumTypeId);
auto &query = _setFileRecordLocalMetadataQuery;
query->reset_and_clear_bindings();
- query->bindValue(1, QString::number(phash));
+ query->bindValue(1, phash);
query->bindValue(2, inode);
query->bindValue(3, modtime);
query->bindValue(4, size);