summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {