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
commit44b536cd5195a5497c13b39de54f40d2c5ab8562 (patch)
tree1becdba95a0ea6e19588e26cf6a7c1c913ca35b8
parentAdds support for SQLite, SQLite mocking and some basic tests (diff)
downloadlibdbpp-sqlite-44b536cd5195a5497c13b39de54f40d2c5ab8562.tar.bz2
libdbpp-sqlite-44b536cd5195a5497c13b39de54f40d2c5ab8562.tar.xz
libdbpp-sqlite-44b536cd5195a5497c13b39de54f40d2c5ab8562.zip
Add support for RDBMS boolean/bit types
-rw-r--r--libsqlitepp/command.cpp5
-rw-r--r--libsqlitepp/command.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/libsqlitepp/command.cpp b/libsqlitepp/command.cpp
index ce2758b..4e24426 100644
--- a/libsqlitepp/command.cpp
+++ b/libsqlitepp/command.cpp
@@ -81,6 +81,11 @@ SQLite::Command::bindParamS(unsigned int n, const Glib::ustring & s)
}
}
void
+SQLite::Command::bindParamB(unsigned int, bool)
+{
+ throw Error("Not supported");
+}
+void
SQLite::Command::bindParamT(unsigned int, const boost::posix_time::time_duration &)
{
throw Error("Not supported");
diff --git a/libsqlitepp/command.h b/libsqlitepp/command.h
index ee099e1..f1d12e9 100644
--- a/libsqlitepp/command.h
+++ b/libsqlitepp/command.h
@@ -18,6 +18,8 @@ namespace SQLite {
void bindParamI(unsigned int, long unsigned int) override;
void bindParamI(unsigned int, long long unsigned int) override;
+ void bindParamB(unsigned int, bool) override;
+
void bindParamF(unsigned int, double) override;
void bindParamF(unsigned int, float) override;