From 5ac2273a3bf8831d5ceb1a1b5b9fcab27fb95c1e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 4 Feb 2019 19:48:03 +0000 Subject: CTF for parameter binding --- libpqpp/pq-command.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libpqpp/pq-command.h') diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index a26bae8..4123d4c 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "pq-connection.h" @@ -28,7 +29,6 @@ namespace PQ { class Command : public virtual DB::Command { public: Command(Connection *, const std::string & sql, const DB::CommandOptionsCPtr &); - virtual ~Command() = 0; void bindParamI(unsigned int, int) override; void bindParamI(unsigned int, long int) override; @@ -59,12 +59,12 @@ namespace PQ { void paramsAtLeast(unsigned int); template - void paramSet(unsigned int, const char * fmt, const T & ... t); + void paramSet(unsigned int, const T & ... t); void paramSet(unsigned int, const std::string_view &); - std::vector values; + std::vector values; std::vector lengths; std::vector formats; - std::vector bufs; + std::vector> bufs; }; } -- cgit v1.2.3