summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-25 12:39:01 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-25 12:39:01 +0100
commitb22957b8c56cef4262bb70a75035f8e77c1d2520 (patch)
treebc98b337c18ebff3c1e5a2fd9ac028f2a8a4b960 /lib
parentDedupe a bit (diff)
downloadmygrate-b22957b8c56cef4262bb70a75035f8e77c1d2520.tar.bz2
mygrate-b22957b8c56cef4262bb70a75035f8e77c1d2520.tar.xz
mygrate-b22957b8c56cef4262bb70a75035f8e77c1d2520.zip
Add message to parameter count assertion
Diffstat (limited to 'lib')
-rw-r--r--lib/dbStmt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dbStmt.h b/lib/dbStmt.h
index 5b6cb69..44ab62c 100644
--- a/lib/dbStmt.h
+++ b/lib/dbStmt.h
@@ -49,7 +49,7 @@ namespace MyGrate {
static Return
execute(ConnType * c, P &&... p)
{
- static_assert(sizeof...(P) == paramCount(ConnType::paramMode));
+ static_assert(sizeof...(P) == paramCount(ConnType::paramMode), "Wrong number of parameters for statement");
auto stmt {c->prepare(S, sizeof...(P))};
stmt->execute({std::forward<P>(p)...});
if constexpr (isSelect) {