diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-25 12:39:01 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-25 12:39:01 +0100 |
commit | b22957b8c56cef4262bb70a75035f8e77c1d2520 (patch) | |
tree | bc98b337c18ebff3c1e5a2fd9ac028f2a8a4b960 /lib | |
parent | Dedupe a bit (diff) | |
download | mygrate-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.h | 2 |
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) { |