summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-13 14:04:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-13 14:04:30 +0100
commit9df7aa0c2b7491410568fc5220768b109437c3c6 (patch)
tree2a798d5a02ba9916b6aa3ef7ee2c39f0a74abe87
parentExpose source id of UpdateDatabase (diff)
downloadmygrate-9df7aa0c2b7491410568fc5220768b109437c3c6.tar.bz2
mygrate-9df7aa0c2b7491410568fc5220768b109437c3c6.tar.xz
mygrate-9df7aa0c2b7491410568fc5220768b109437c3c6.zip
Fix binding multiple parameters in DbStmt
-rw-r--r--lib/dbStmt.h2
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();
}