Skip to content

Commit

Permalink
0005463: Initial load of a table with a self referencing FK will not
Browse files Browse the repository at this point in the history
load if out of order
  • Loading branch information
joshahicks committed Sep 20, 2022
1 parent 65607f3 commit 59cacda
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -37,6 +37,7 @@
import org.jumpmind.db.sql.Row;
import org.jumpmind.symmetric.ISymmetricEngine;
import org.jumpmind.symmetric.SymmetricException;
import org.jumpmind.symmetric.common.Constants;
import org.jumpmind.symmetric.common.ParameterConstants;
import org.jumpmind.symmetric.db.ISymmetricDialect;
import org.jumpmind.symmetric.io.data.Batch;
Expand Down Expand Up @@ -166,7 +167,7 @@ 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) && StringUtils.isBlank(overrideSelectSql)) {
if (parameterService.is(ParameterConstants.INITIAL_LOAD_RECURSION_SELF_FK) && overrideSelectSql.equals(Constants.ALWAYS_TRUE_CONDITION)) {
ForeignKey fk = sourceTable.getSelfReferencingForeignKey();
if (fk != null) {
Reference[] refs = fk.getReferences();
Expand Down

0 comments on commit 59cacda

Please sign in to comment.