diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-14 01:31:35 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-14 01:33:36 +0100 |
commit | 6fd16aeac962cd80a37307fa90e3eb9a7102330b (patch) | |
tree | c3808c9b8be7ef8e1dbb6e286466abfaa4063128 /lib/input/mysqlStmt.h | |
parent | Wider type support for PQ bindings (diff) | |
download | mygrate-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.h')
-rw-r--r-- | lib/input/mysqlStmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/input/mysqlStmt.h b/lib/input/mysqlStmt.h index 09b5c73..4a4ad8f 100644 --- a/lib/input/mysqlStmt.h +++ b/lib/input/mysqlStmt.h @@ -17,7 +17,7 @@ namespace MyGrate::Input { class MySQLPrepStmt : public DbPrepStmt { public: MySQLPrepStmt(const char * const q, MYSQL * c); - void execute(const std::initializer_list<DbValue> & vs) override; + void execute(const std::span<const DbValue> vs) override; std::size_t rows() const override; |