diff options
Diffstat (limited to 'lib/output')
-rw-r--r-- | lib/output/pq/pqBindings.h | 3 | ||||
-rw-r--r-- | lib/output/pq/pqStmt.cpp | 2 | ||||
-rw-r--r-- | lib/output/pq/pqStmt.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/lib/output/pq/pqBindings.h b/lib/output/pq/pqBindings.h index 13d0f69..2a4ac8c 100644 --- a/lib/output/pq/pqBindings.h +++ b/lib/output/pq/pqBindings.h @@ -11,8 +11,7 @@ namespace MyGrate::Output::Pq { struct Bindings { - // NOLINTNEXTLINE(hicpp-explicit-conversions) - explicit Bindings(const std::initializer_list<DbValue> & vs) + explicit Bindings(const std::span<const DbValue> vs) { bufs.reserve(vs.size()); values.reserve(vs.size()); diff --git a/lib/output/pq/pqStmt.cpp b/lib/output/pq/pqStmt.cpp index 7e085b5..eb3c32d 100644 --- a/lib/output/pq/pqStmt.cpp +++ b/lib/output/pq/pqStmt.cpp @@ -19,7 +19,7 @@ namespace MyGrate::Output::Pq { } void - PqPrepStmt::execute(const std::initializer_list<DbValue> & vs) + PqPrepStmt::execute(const std::span<const DbValue> vs) { Bindings b {vs}; res = {PQexecPrepared( diff --git a/lib/output/pq/pqStmt.h b/lib/output/pq/pqStmt.h index 887a326..33047c0 100644 --- a/lib/output/pq/pqStmt.h +++ b/lib/output/pq/pqStmt.h @@ -21,7 +21,7 @@ namespace MyGrate::Output::Pq { public: PqPrepStmt(const char * const q, std::size_t n, PqConn * 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; |