From b9aaad1d4d8be6604c84aa11651b99ac932794af Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 5 Jun 2017 16:47:06 +0100 Subject: Add support for bytea / blob type data --- libpqpp/pq-command.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpqpp/pq-command.h') diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index 7612262..989844c 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -43,6 +43,8 @@ namespace PQ { void bindParamT(unsigned int, const boost::posix_time::time_duration &) override; void bindParamT(unsigned int, const boost::posix_time::ptime &) override; + void bindParamBLOB(unsigned int, const DB::Blob &) override; + void bindNull(unsigned int) override; protected: void prepareSql(std::stringstream & psql, const std::string & sql) const; @@ -56,6 +58,7 @@ namespace PQ { void paramSet(unsigned int, const std::string &); std::vector values; std::vector lengths; + std::vector formats; std::vector bufs; }; } -- cgit v1.2.3