You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "swebb2066 (via GitHub)" <gi...@apache.org> on 2023/05/03 07:02:29 UTC
[GitHub] [logging-log4cxx] swebb2066 commented on a diff in pull request #213: Column mappings are required to insert messages
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: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org