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