Adjust the condition of the port number (#3954)
This commit is contained in:
parent
cfe00de6c2
commit
64bc7e2f57
@ -466,7 +466,8 @@ public class DatabaseImportController implements ImportingController {
|
|||||||
}
|
}
|
||||||
if (jdbcConfig.getDatabaseHost() == null || jdbcConfig.getDatabaseName() == null
|
if (jdbcConfig.getDatabaseHost() == null || jdbcConfig.getDatabaseName() == null
|
||||||
|| jdbcConfig.getDatabasePassword() == null || jdbcConfig.getDatabaseType() == null
|
|| jdbcConfig.getDatabasePassword() == null || jdbcConfig.getDatabaseType() == null
|
||||||
|| jdbcConfig.getDatabaseUser() == null || query == null || jdbcConfig.getDatabasePort() == 0) {
|
|| jdbcConfig.getDatabaseUser() == null || query == null
|
||||||
|
|| (jdbcConfig.getDatabasePort() == 0 && !"SQLite".equalsIgnoreCase(jdbcConfig.getDatabaseType()))) {
|
||||||
if(logger.isDebugEnabled()) {
|
if(logger.isDebugEnabled()) {
|
||||||
logger.debug("Missing Database Configuration::{}", jdbcConfig);
|
logger.debug("Missing Database Configuration::{}", jdbcConfig);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user