Skip to content

Commit

Permalink
fix: #793
Browse files Browse the repository at this point in the history
  • Loading branch information
yeeevip committed Jan 3, 2024
1 parent 6440439 commit d6ba57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/github/pagehelper/page/PageAutoDialect.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ public void initDelegateDialect(MappedStatement ms, String dialectClass) {
}
}
dialectThreadLocal.set(dialect);
} else if (delegate == null) {
} else {
if (autoDialect) {
this.delegate = autoGetDialect(ms);
} else {
dialectThreadLocal.set(autoGetDialect(ms));
} else if (delegate == null) {
throw new PageException("place config helperDialect property");
}
}
}
Expand Down

0 comments on commit d6ba57c

Please sign in to comment.