aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/TransactionsModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/Model/TransactionsModel.cpp')
-rw-r--r--core/src/Model/TransactionsModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/Model/TransactionsModel.cpp b/core/src/Model/TransactionsModel.cpp
index 6035528..968f0c0 100644
--- a/core/src/Model/TransactionsModel.cpp
+++ b/core/src/Model/TransactionsModel.cpp
@@ -9,9 +9,9 @@ namespace fs = std::filesystem;
SalesTable::SalesTable(TransactionModel& db)
// language=SQLite
- : GetRowsStatement(db.GetSQLite(), R"""(
-SELECT * FROM Sales WHERE rowid >= ? AND rowid < ?
-)""")
+ : GetRowCountStatement(db.GetSQLite(), "SELECT Count(*) FROM Sales")
+ // language=SQLite
+ , GetRowsStatement(db.GetSQLite(), "SELECT * FROM Sales WHERE rowid >= ? AND rowid < ?")
// language=SQLite
// TODO
, FilterRowsStatement(db.GetSQLite(), R"""(