summaryrefslogtreecommitdiff
path: root/libodbcpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-02-14 14:46:52 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-02-14 14:46:52 +0000
commit40ad9a3711e703fde3d78a5633e42113cb450705 (patch)
treee0a748a5af2b96c111fde58eb76ebbb0a3ebde9d /libodbcpp
parentTidy includes (diff)
downloadlibdbpp-odbc-40ad9a3711e703fde3d78a5633e42113cb450705.tar.bz2
libdbpp-odbc-40ad9a3711e703fde3d78a5633e42113cb450705.tar.xz
libdbpp-odbc-40ad9a3711e703fde3d78a5633e42113cb450705.zip
enum class BulkUpdateslibdbpp-odbc-1.4.6
Diffstat (limited to 'libodbcpp')
-rw-r--r--libodbcpp/odbc-connection.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/libodbcpp/odbc-connection.cpp b/libodbcpp/odbc-connection.cpp
index a46a5f9..0cd5d19 100644
--- a/libodbcpp/odbc-connection.cpp
+++ b/libodbcpp/odbc-connection.cpp
@@ -14,7 +14,8 @@
NAMEDFACTORY("odbc", ODBC::Connection, DB::ConnectionFactory)
ODBC::Connection::Connection(const DSN & d) :
- env(nullptr), conn(nullptr), thinkDelStyle(DB::BulkDeleteUsingUsing), thinkUpdStyle(DB::BulkUpdateUsingFromSrc)
+ env(nullptr), conn(nullptr), thinkDelStyle(DB::BulkDeleteStyle::UsingUsing),
+ thinkUpdStyle(DB::BulkUpdateStyle::UsingFromSrc)
{
connectPre();
RETCODE dberr = SQLConnect(conn, const_cast<SQLCHAR *>(reinterpret_cast<const SQLCHAR *>(d.dsn.c_str())), SQL_NTS,
@@ -65,13 +66,14 @@ ODBC::Connection::connectPost()
// Apply known DB specific tweaks
// NOLINTNEXTLINE(hicpp-no-array-decay)
if (strcasestr(reinterpret_cast<const char *>(info.data()), "myodbc")) {
- thinkDelStyle = DB::BulkDeleteUsingUsingAlias;
- thinkUpdStyle = DB::BulkUpdateUsingJoin;
+ thinkDelStyle = DB::BulkDeleteStyle::UsingUsingAlias;
+ thinkUpdStyle = DB::BulkUpdateStyle::UsingJoin;
}
}
ODBC::Connection::Connection(const std::string & s) :
- env(nullptr), conn(nullptr), thinkDelStyle(DB::BulkDeleteUsingUsing), thinkUpdStyle(DB::BulkUpdateUsingFromSrc)
+ env(nullptr), conn(nullptr), thinkDelStyle(DB::BulkDeleteStyle::UsingUsing),
+ thinkUpdStyle(DB::BulkUpdateStyle::UsingFromSrc)
{
connectPre();
RETCODE dberr = SQLDriverConnect(conn, nullptr, const_cast<SQLCHAR *>(reinterpret_cast<const SQLCHAR *>(s.c_str())),