summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 16:47:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 17:17:09 +0100
commitb9aaad1d4d8be6604c84aa11651b99ac932794af (patch)
tree907695b54295aaf3b25240c8c0cb20d56ecc14c6 /libpqpp/pq-command.h
parentFix memory leak in unit test (diff)
downloadlibdbpp-postgresql-b9aaad1d4d8be6604c84aa11651b99ac932794af.tar.bz2
libdbpp-postgresql-b9aaad1d4d8be6604c84aa11651b99ac932794af.tar.xz
libdbpp-postgresql-b9aaad1d4d8be6604c84aa11651b99ac932794af.zip
Add support for bytea / blob type data
Diffstat (limited to 'libpqpp/pq-command.h')
-rw-r--r--libpqpp/pq-command.h3
1 files changed, 3 insertions, 0 deletions
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<char *> values;
std::vector<int> lengths;
+ std::vector<int> formats;
std::vector<std::string *> bufs;
};
}