Browse Source

REPORT-11437 调整druid源码

research/11.0
loy 6 years ago
parent
commit
67a16f2f08
  1. 4
      fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSourceFactory.java

4
fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSourceFactory.java

@ -425,11 +425,11 @@ public class DruidDataSourceFactory implements ObjectFactory {
} }
value = (String) properties.get(PROP_VALIDATIONQUERY); value = (String) properties.get(PROP_VALIDATIONQUERY);
if (value != null) { if (value != null && value.length() > 0) {
dataSource.setValidationQuery(value); dataSource.setValidationQuery(value);
} else { } else {
value = (String) properties.get(HB_PROP_VALIDATIONQUERY); value = (String) properties.get(HB_PROP_VALIDATIONQUERY);
if (value != null) { if (value != null && value.length() > 0) {
dataSource.setValidationQuery(value); dataSource.setValidationQuery(value);
} }
} }

Loading…
Cancel
Save