MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / setDocumentVersion

Method setDocumentVersion

src/database/WizIndex.cpp:3281–3296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3279#endif
3280
3281bool WizIndex::setDocumentVersion(const CString& strDocumentGUID, qint64 nVersion)
3282{
3283 if (nVersion == -1)
3284 {
3285 qDebug() << "modify document version (-1), guid: " << strDocumentGUID;
3286 }
3287 //
3288 CString strSQL = WizFormatString2("update WIZ_DOCUMENT set WIZ_VERSION=%1 where DOCUMENT_GUID=%2",
3289 WizInt64ToStr(nVersion),
3290 STR2SQL(strDocumentGUID));
3291
3292 if (!execSQL(strSQL))
3293 return false;
3294
3295 return true;
3296}
3297
3298bool WizIndex::setThumbIndexVersion(const QString& strVersion)
3299{

Callers 1

deleteToTrashMethod · 0.80

Calls 2

WizFormatString2Function · 0.85
WizInt64ToStrFunction · 0.85

Tested by

no test coverage detected