From 19609c41b15a818df30508576f50fc0eddc11636 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 5 Jun 2017 18:53:22 +0100 Subject: Support fetching data in binary format (no numeric, datetime, interval support yet) --- libpqpp/pq-connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpqpp/pq-connection.cpp') diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index 643e021..e189acf 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -101,7 +101,7 @@ PQ::Connection::newSelectCommand(const std::string & sql, const DB::CommandOptio { auto pqco = dynamic_cast(opts); if (pqco && !pqco->useCursor) { - return new BulkSelectCommand(this, sql, opts); + return new BulkSelectCommand(this, sql, pqco, opts); } return new CursorSelectCommand(this, sql, pqco, opts); } @@ -180,7 +180,7 @@ static const DB::CommandOptions selectLastValOpts(std::hash()(selec int64_t PQ::Connection::insertId() { - BulkSelectCommand getId(this, selectLastVal, &selectLastValOpts); + BulkSelectCommand getId(this, selectLastVal, nullptr, &selectLastValOpts); int64_t id = -1; while (getId.fetch()) { getId[0] >> id; -- cgit v1.2.3