summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-error.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 15:29:12 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 15:29:12 +0000
commit881033464c13398f78be306d8d785616f0947896 (patch)
tree38a3a320b5dd90a0b377a1b69735546c3ed84057 /libodbcpp/odbc-error.cpp
parentUpdate to new libdbpp interface (diff)
downloadlibdbpp-odbc-881033464c13398f78be306d8d785616f0947896.tar.bz2
libdbpp-odbc-881033464c13398f78be306d8d785616f0947896.tar.xz
libdbpp-odbc-881033464c13398f78be306d8d785616f0947896.zip
Bring inline with clang-tidy checks
Diffstat (limited to 'libodbcpp/odbc-error.cpp')
-rw-r--r--libodbcpp/odbc-error.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libodbcpp/odbc-error.cpp b/libodbcpp/odbc-error.cpp
index 4f8f89a..7179a17 100644
--- a/libodbcpp/odbc-error.cpp
+++ b/libodbcpp/odbc-error.cpp
@@ -22,7 +22,8 @@ ODBC::Error::Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle)
SQLINTEGER sqlerr;
SQLCHAR sqlerrmsg[12800];
- SQLRETURN rc = SQLGetDiagRec(handletype, handle, 1, sqlstatus, &sqlerr, sqlerrmsg, sizeof(sqlerrmsg), NULL);
+ // NOLINTNEXTLINE(hicpp-no-array-decay)
+ SQLRETURN rc = SQLGetDiagRec(handletype, handle, 1, sqlstatus, &sqlerr, sqlerrmsg, sizeof(sqlerrmsg), nullptr);
switch (rc) {
case SQL_SUCCESS:
case SQL_SUCCESS_WITH_INFO:
@@ -45,7 +46,7 @@ ODBC::Error::Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle)
}
std::string
-ODBC::Error::message() const throw()
+ODBC::Error::message() const noexcept
{
return msg;
}