summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-05-02 18:41:53 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-05-02 18:41:53 +0100
commitd9b70474d093d2319d73b5c7b017f5643d8ae7f0 (patch)
treed9d598b981b708490f0fa030a309c0a599293450
parentCentralize all the column reference storage logic (diff)
downloadlibdbpp-d9b70474d093d2319d73b5c7b017f5643d8ae7f0.tar.bz2
libdbpp-d9b70474d093d2319d73b5c7b017f5643d8ae7f0.tar.xz
libdbpp-d9b70474d093d2319d73b5c7b017f5643d8ae7f0.zip
Add support for RDBMS boolean/bit types
-rw-r--r--libdbpp/column.h1
-rw-r--r--libdbpp/command.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/libdbpp/column.h b/libdbpp/column.h
index 5ca0be1..2eb2e8d 100644
--- a/libdbpp/column.h
+++ b/libdbpp/column.h
@@ -11,6 +11,7 @@ namespace DB {
virtual void null() = 0;
virtual void string(const char *, size_t len) = 0;
virtual void integer(int64_t) = 0;
+ virtual void boolean(bool) = 0;
virtual void floatingpoint(double) = 0;
virtual void interval(const boost::posix_time::time_duration &) = 0;
virtual void timestamp(const boost::posix_time::ptime &) = 0;
diff --git a/libdbpp/command.h b/libdbpp/command.h
index df621d2..8cc515f 100644
--- a/libdbpp/command.h
+++ b/libdbpp/command.h
@@ -17,6 +17,8 @@ namespace DB {
virtual void bindParamI(unsigned int i, unsigned long int val) = 0;
virtual void bindParamI(unsigned int i, unsigned long long int val) = 0;
+ virtual void bindParamB(unsigned int i, bool val) = 0;
+
virtual void bindParamF(unsigned int i, double val) = 0;
virtual void bindParamF(unsigned int i, float val) = 0;