summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbpp/command.cpp5
-rw-r--r--libdbpp/command.h4
2 files changed, 9 insertions, 0 deletions
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<std::size_t> hash;
};
/// Represents the basics of any command to be executed against a database.