You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "garydgregory (via GitHub)" <gi...@apache.org> on 2023/07/30 12:53:29 UTC

[GitHub] [commons-dbutils] garydgregory commented on a diff in pull request #5: optimize map columns 2 properties code

garydgregory commented on code in PR #5:
URL: https://github.com/apache/commons-dbutils/pull/5#discussion_r261832711


##########
src/main/java/org/apache/commons/dbutils/BeanProcessor.java:
##########
@@ -465,9 +465,6 @@ protected Method getWriteMethod(final Object target, final PropertyDescriptor pr
 
         for (int col = 1; col <= cols; col++) {
             String columnName = rsmd.getColumnLabel(col);
-            if (null == columnName || 0 == columnName.length()) {

Review Comment:
   This whole patch seems redundant with what JDBC specifies as the behavior for getColumnLabel(). What am I missing? This patch is workaround for buggy JDBC drivers?



-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org