diff --git a/dde-osd/notification/persistence.cpp b/dde-osd/notification/persistence.cpp index 4b5e6c725..75d700d5c 100644 --- a/dde-osd/notification/persistence.cpp +++ b/dde-osd/notification/persistence.cpp @@ -344,6 +344,7 @@ QString Persistence::getFrom(int rowCount, const QString &offsetId) sqlCmd += TableName_v2; sqlCmd += QString(" LIMIT (:rowCount) OFFSET (:offset)"); + m_query.prepare(sqlCmd); m_query.bindValue(":rowCount", rowCount); m_query.bindValue(":offset", rowNum);