Skip to content

Commit

Permalink
Fixed error when loading single table without single rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangML committed Mar 15, 2024
1 parent 109a5d9 commit 456d00c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ private Collection<String> getLogicDataSources(final ShardingSphereDatabase data
@Override
public SingleRuleConfiguration buildToBeCreatedRuleConfiguration(final LoadSingleTableStatement sqlStatement) {
SingleRuleConfiguration result = new SingleRuleConfiguration();
result.getTables().addAll(rule.getConfiguration().getTables());
if (null != rule) {
result.getTables().addAll(rule.getConfiguration().getTables());
}
result.getTables().addAll(getRequiredTables(sqlStatement));
return result;
}
Expand Down

0 comments on commit 456d00c

Please sign in to comment.