diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-13 14:04:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-13 14:04:30 +0100 |
commit | 9df7aa0c2b7491410568fc5220768b109437c3c6 (patch) | |
tree | 2a798d5a02ba9916b6aa3ef7ee2c39f0a74abe87 | |
parent | Expose source id of UpdateDatabase (diff) | |
download | mygrate-9df7aa0c2b7491410568fc5220768b109437c3c6.tar.bz2 mygrate-9df7aa0c2b7491410568fc5220768b109437c3c6.tar.xz mygrate-9df7aa0c2b7491410568fc5220768b109437c3c6.zip |
Fix binding multiple parameters in DbStmt
-rw-r--r-- | lib/dbStmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dbStmt.h b/lib/dbStmt.h index 80dbd71..5b6cb69 100644 --- a/lib/dbStmt.h +++ b/lib/dbStmt.h @@ -51,7 +51,7 @@ namespace MyGrate { { static_assert(sizeof...(P) == paramCount(ConnType::paramMode)); auto stmt {c->prepare(S, sizeof...(P))}; - stmt->execute({std::forward<P...>(p)...}); + stmt->execute({std::forward<P>(p)...}); if constexpr (isSelect) { return stmt->recordSet(); } |