diff --git a/Query.cpp b/Query.cpp index 12a7d03..5789c39 100644 --- a/Query.cpp +++ b/Query.cpp @@ -148,12 +148,13 @@ void current_status_parkspots(vector& spots) { vector reports_from_customer(int cid, pair period) { vector park_times; // debug - cout << "it called"; SQLite::Statement query( - data::db, "SELECT * FROM Park_time WHERE 'customer_id' = '?' AND start > ? AND end < ?;"); - query.bind(1, cid); + data::db, "SELECT * FROM Park_time WHERE 'customer_id' = '?' AND start > '?' AND end < '?';"); + // query.bind(1, cid); query.bind(2, period.first); + cout << "before\n"; query.bind(3, period.second); + cout << "after\n"; while (query.executeStep()) { int id = query.getColumn(1); int spotid = query.getColumn(2);