summaryrefslogtreecommitdiff
path: root/lib/input/mysqlStmt.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-14 01:31:35 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-14 01:33:36 +0100
commit6fd16aeac962cd80a37307fa90e3eb9a7102330b (patch)
treec3808c9b8be7ef8e1dbb6e286466abfaa4063128 /lib/input/mysqlStmt.cpp
parentWider type support for PQ bindings (diff)
downloadmygrate-6fd16aeac962cd80a37307fa90e3eb9a7102330b.tar.bz2
mygrate-6fd16aeac962cd80a37307fa90e3eb9a7102330b.tar.xz
mygrate-6fd16aeac962cd80a37307fa90e3eb9a7102330b.zip
Pass bindings as a span, only wrap with initializer_list
Diffstat (limited to 'lib/input/mysqlStmt.cpp')
-rw-r--r--lib/input/mysqlStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/input/mysqlStmt.cpp b/lib/input/mysqlStmt.cpp
index e0f4cbc..0a80258 100644
--- a/lib/input/mysqlStmt.cpp
+++ b/lib/input/mysqlStmt.cpp
@@ -15,7 +15,7 @@ namespace MyGrate::Input {
}
void
- MySQLPrepStmt::execute(const std::initializer_list<DbValue> & vs)
+ MySQLPrepStmt::execute(const std::span<const DbValue> vs)
{
Bindings b {vs};
verify<std::logic_error>(!mysql_stmt_bind_param(stmt.get(), b.binds.data()), "Param count mismatch");