swebb2066 commented on code in PR #213:
URL: https://github.com/apache/logging-log4cxx/pull/213#discussion_r1183211926
##########
src/main/cpp/odbcappender.cpp:
##########
@@ -200,6 +200,9 @@ void ODBCAppender::activateOptions(log4cxx::helpers::Pool&)
#if !LOG4CXX_HAVE_ODBC
LogLog::error(LOG4CXX_STR("Can not activate ODBCAppender unless
compiled with ODBC support."));
#else
+ if(_priv->mappedName.size() == 0){
+ LogLog::error("No column mappings have been defined, messages cannot
be inserted");
Review Comment:
if(_priv->mappedName.empty()){
LogLog::error(LOG4CXX_STR("No column mappings have been defined,
messages cannot be inserted"));
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]