From e49b206df7263d7c62d6e1f5f727950bbbe18957 Mon Sep 17 00:00:00 2001 From: MassiveAtoms Date: Sun, 21 Jul 2019 22:21:09 -0300 Subject: [PATCH] idk what --- Query.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);