summaryrefslogtreecommitdiff
path: root/libodbcpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 04:28:57 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commit0f62ac23fa5cbb834d15a325c547030492642b9b (patch)
tree98def6c98953e64a626f402f44a8f2afa27f08d0 /libodbcpp
parentDefault (not supported) bulk upload implementation (diff)
downloadlibdbpp-odbc-0f62ac23fa5cbb834d15a325c547030492642b9b.tar.bz2
libdbpp-odbc-0f62ac23fa5cbb834d15a325c547030492642b9b.tar.xz
libdbpp-odbc-0f62ac23fa5cbb834d15a325c547030492642b9b.zip
Non-const command getters
Diffstat (limited to 'libodbcpp')
-rw-r--r--libodbcpp/odbc-connection.cpp4
-rw-r--r--libodbcpp/odbc-connection.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libodbcpp/odbc-connection.cpp b/libodbcpp/odbc-connection.cpp
index 1616e18..433acb5 100644
--- a/libodbcpp/odbc-connection.cpp
+++ b/libodbcpp/odbc-connection.cpp
@@ -194,13 +194,13 @@ ODBC::Connection::bulkUpdateStyle() const
}
DB::SelectCommand *
-ODBC::Connection::newSelectCommand(const std::string & sql) const
+ODBC::Connection::newSelectCommand(const std::string & sql)
{
return new ODBC::SelectCommand(*this, sql);
}
DB::ModifyCommand *
-ODBC::Connection::newModifyCommand(const std::string & sql) const
+ODBC::Connection::newModifyCommand(const std::string & sql)
{
return new ODBC::ModifyCommand(*this, sql);
}
diff --git a/libodbcpp/odbc-connection.h b/libodbcpp/odbc-connection.h
index a1c82ba..8c14af4 100644
--- a/libodbcpp/odbc-connection.h
+++ b/libodbcpp/odbc-connection.h
@@ -34,8 +34,8 @@ namespace ODBC {
DB::BulkDeleteStyle bulkDeleteStyle() const;
DB::BulkUpdateStyle bulkUpdateStyle() const;
- DB::SelectCommand * newSelectCommand(const std::string & sql) const;
- DB::ModifyCommand * newModifyCommand(const std::string & sql) const;
+ DB::SelectCommand * newSelectCommand(const std::string & sql) override;
+ DB::ModifyCommand * newModifyCommand(const std::string & sql) override;
private:
DB::BulkDeleteStyle thinkDelStyle;