diff --git a/src/ui/util/model/tablesqlmodel.cpp b/src/ui/util/model/tablesqlmodel.cpp index d9216d08..8518b455 100644 --- a/src/ui/util/model/tablesqlmodel.cpp +++ b/src/ui/util/model/tablesqlmodel.cpp @@ -62,7 +62,7 @@ int TableSqlModel::doSqlCount() const QString TableSqlModel::sqlCount() const { - return "SELECT count(*) FROM (" + sqlBase() + ");"; + return "SELECT COUNT(*) FROM (" + sqlBase() + ");"; } QString TableSqlModel::sql() const