From 6030f8caab731fe3806c1ca1e5b50e6167d9c4e2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Jan 2017 16:14:16 +0000 Subject: Implement getting PQ command option settings from map --- libpqpp/pq-command.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp index 1db81a6..f31d78a 100644 --- a/libpqpp/pq-command.cpp +++ b/libpqpp/pq-command.cpp @@ -29,10 +29,11 @@ PQ::Command::~Command() } } -PQ::CommandOptions::CommandOptions(std::size_t hash, const DB::CommandOptionsMap &) : - DB::CommandOptions(hash) +PQ::CommandOptions::CommandOptions(std::size_t hash, const DB::CommandOptionsMap & map) : + DB::CommandOptions(hash), + fetchTuples(get(map, "page-size", 35)), + useCursor(!isSet(map, "no-cursor")) { - } PQ::CommandOptions::CommandOptions(std::size_t hash, -- cgit v1.2.3