isTableNotExist优化

This commit is contained in:
redkale
2024-02-29 14:58:46 +08:00
parent 6f21745537
commit e0aac13710

View File

@@ -581,7 +581,7 @@ public abstract class AbstractDataSqlSource extends AbstractDataSource implement
}
protected boolean isTableNotExist(EntityInfo info, Throwable exp, String sqlCode) {
if (exp instanceof java.sql.SQLSyntaxErrorException) {
if (exp.getMessage().contains("syntax")) {
return false;
}
return sqlCode != null && !sqlCode.isEmpty() && tableNotExistSqlstates.contains(';' + sqlCode + ';');