summaryrefslogtreecommitdiff
path: root/libdbpp/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/unittests')
-rw-r--r--libdbpp/unittests/mockdb.cpp6
-rw-r--r--libdbpp/unittests/mockdb.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/libdbpp/unittests/mockdb.cpp b/libdbpp/unittests/mockdb.cpp
index 6ae6810..cf29e01 100644
--- a/libdbpp/unittests/mockdb.cpp
+++ b/libdbpp/unittests/mockdb.cpp
@@ -38,7 +38,7 @@ MockDb::bulkUpdateStyle() const
}
void
-MockDb::execute(const std::string & sql)
+MockDb::execute(const std::string & sql, const DB::CommandOptions *)
{
if (sql.substr(0, 3) == "Not") {
throw DB::Error();
@@ -47,13 +47,13 @@ MockDb::execute(const std::string & sql)
}
DB::SelectCommand *
-MockDb::newSelectCommand(const std::string &)
+MockDb::newSelectCommand(const std::string &, const DB::CommandOptions *)
{
return nullptr;
}
DB::ModifyCommand *
-MockDb::newModifyCommand(const std::string &)
+MockDb::newModifyCommand(const std::string &, const DB::CommandOptions *)
{
return nullptr;
}
diff --git a/libdbpp/unittests/mockdb.h b/libdbpp/unittests/mockdb.h
index cd6fb26..b67dfe4 100644
--- a/libdbpp/unittests/mockdb.h
+++ b/libdbpp/unittests/mockdb.h
@@ -15,9 +15,9 @@ class MockDb : public DB::Connection {
DB::BulkDeleteStyle bulkDeleteStyle() const override;
DB::BulkUpdateStyle bulkUpdateStyle() const override;
- void execute(const std::string & sql) override;
- DB::SelectCommand * newSelectCommand(const std::string &) override;
- DB::ModifyCommand * newModifyCommand(const std::string &) override;
+ void execute(const std::string & sql, const DB::CommandOptions *) override;
+ DB::SelectCommand * newSelectCommand(const std::string &, const DB::CommandOptions *) override;
+ DB::ModifyCommand * newModifyCommand(const std::string &, const DB::CommandOptions *) override;
mutable std::vector<std::string> executed;
};