| 3279 | #endif |
| 3280 | |
| 3281 | bool 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 | |
| 3298 | bool WizIndex::setThumbIndexVersion(const QString& strVersion) |
| 3299 | { |
no test coverage detected