shared: SqliteSearch: Append LIMIT statement if need be

Este commit está contenido en:
Albert S. 2022-06-05 14:04:17 +02:00
padre 862168418b
commit e5e43c8bfb

Ver fichero

@ -183,6 +183,11 @@ QSqlQuery SqliteSearch::makeSqlQuery(const LooqsQuery &query)
whereSql + " " + sortSql;
}
if(query.getLimit() > 0)
{
prepSql += " LIMIT " + QString::number(query.getLimit());
}
QSqlQuery dbquery(*db);
dbquery.prepare(prepSql);
for(const QString &value : bindValues)