summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-command.cpp')
-rw-r--r--libpqpp/pq-command.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp
index 5476393..9fd4002 100644
--- a/libpqpp/pq-command.cpp
+++ b/libpqpp/pq-command.cpp
@@ -32,16 +32,19 @@ PQ::Command::~Command()
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"))
+ useCursor(!isSet(map, "no-cursor")),
+ fetchBinary(isSet(map, "fetch-binary"))
{
}
PQ::CommandOptions::CommandOptions(std::size_t hash,
unsigned int ft,
- bool uc) :
+ bool uc,
+ bool fb) :
DB::CommandOptions(hash),
fetchTuples(ft),
- useCursor(uc)
+ useCursor(uc),
+ fetchBinary(fb)
{
}