From 0bf706059f8a6df882cac3d6e7e976f4432b4271 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 19 Feb 2016 21:25:02 +0000 Subject: Refactor to use std::string as buffer and increase test coverage --- libpqpp/pq-command.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libpqpp/pq-command.h') diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index ea32f61..8af2d07 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -36,12 +36,14 @@ namespace PQ { Connection * const c; void paramsAtLeast(unsigned int); + template + void paramSet(unsigned int, const char * fmt, const T & ... t); + void paramSet(unsigned int, const std::string &); std::vector values; std::vector lengths; - std::vector formats; + std::vector bufs; }; } #endif - -- cgit v1.2.3