|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|