From b22957b8c56cef4262bb70a75035f8e77c1d2520 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 25 Jul 2021 12:39:01 +0100 Subject: Add message to parameter count assertion --- lib/dbStmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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)...}); if constexpr (isSelect) { -- cgit v1.2.3