diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-27 23:17:14 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-27 23:17:14 -0400 |
commit | 7de18ffaa7545543eec5db3c557e1a7fdb9115f2 (patch) | |
tree | 4de1441f1a63dc316914edc4bd3bd921ed44c1c6 | |
parent | 7cb13590b2aab04fc7590dbf86f28b4c4b60449d (diff) | |
download | hkutil-7de18ffaa7545543eec5db3c557e1a7fdb9115f2.tar.gz hkutil-7de18ffaa7545543eec5db3c557e1a7fdb9115f2.tar.bz2 hkutil-7de18ffaa7545543eec5db3c557e1a7fdb9115f2.zip |
Added default value to database query bindings
-rw-r--r-- | hkutil/database.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hkutil/database.h b/hkutil/database.h index 67dd9c5..0914047 100644 --- a/hkutil/database.h +++ b/hkutil/database.h | |||
@@ -187,7 +187,7 @@ namespace hatkirby { | |||
187 | 187 | ||
188 | std::vector<row> queryAll( | 188 | std::vector<row> queryAll( |
189 | std::string queryString, | 189 | std::string queryString, |
190 | std::list<binding> bindings) | 190 | std::list<binding> bindings = {}) |
191 | { | 191 | { |
192 | sqlite3_stmt* tempStmt; | 192 | sqlite3_stmt* tempStmt; |
193 | 193 | ||
@@ -287,7 +287,7 @@ namespace hatkirby { | |||
287 | 287 | ||
288 | row queryFirst( | 288 | row queryFirst( |
289 | std::string queryString, | 289 | std::string queryString, |
290 | std::list<binding> bindings) | 290 | std::list<binding> bindings = {}) |
291 | { | 291 | { |
292 | std::vector<row> dataset = queryAll( | 292 | std::vector<row> dataset = queryAll( |
293 | std::move(queryString), | 293 | std::move(queryString), |