From 20d4693ada8ef4e14f464df9d17887b10f7973e8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 1 Jan 2017 19:33:46 +0000 Subject: Add hash to base command options --- libdbpp/command.cpp | 5 +++++ libdbpp/command.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/libdbpp/command.cpp b/libdbpp/command.cpp index 97a6518..c6d7a7c 100644 --- a/libdbpp/command.cpp +++ b/libdbpp/command.cpp @@ -17,6 +17,11 @@ DB::ParameterOutOfRange::ParameterOutOfRange() { } +DB::CommandOptions::CommandOptions(std::size_t h) : + hash(h) +{ +} + void DB::Command::bindParamS(unsigned int i, const char * const o) { diff --git a/libdbpp/command.h b/libdbpp/command.h index eaca8a9..2a07a73 100644 --- a/libdbpp/command.h +++ b/libdbpp/command.h @@ -23,7 +23,11 @@ namespace DB { class DLL_PUBLIC CommandOptions { public: + CommandOptions() = default; + CommandOptions(std::size_t hash); virtual ~CommandOptions() = default; + + boost::optional hash; }; /// Represents the basics of any command to be executed against a database. -- cgit v1.2.3