Skip to content

Commit

Permalink
0005463: fix blank and null case
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Sep 20, 2022
1 parent 0971629 commit 1212080
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -167,7 +167,8 @@ protected CsvData selectNext() {
if (overrideSelectSql != null && overrideSelectSql.trim().toUpperCase().startsWith("WHERE")) {
overrideSelectSql = overrideSelectSql.trim().substring(5);
}
if (parameterService.is(ParameterConstants.INITIAL_LOAD_RECURSION_SELF_FK) && overrideSelectSql.equals(Constants.ALWAYS_TRUE_CONDITION)) {
if (parameterService.is(ParameterConstants.INITIAL_LOAD_RECURSION_SELF_FK) && (StringUtils.isBlank(overrideSelectSql) ||
Constants.ALWAYS_TRUE_CONDITION.equals(overrideSelectSql))) {
ForeignKey fk = sourceTable.getSelfReferencingForeignKey();
if (fk != null) {
Reference[] refs = fk.getReferences();
Expand Down

0 comments on commit 1212080

Please sign in to comment.