提交 7c05e5c3 authored 作者: Andrei Tokar's avatar Andrei Tokar

eliminate check condition duplication

上级 08109313
...@@ -710,7 +710,7 @@ public class Column { ...@@ -710,7 +710,7 @@ public class Column {
} }
if (checkConstraint == null) { if (checkConstraint == null) {
checkConstraint = expr; checkConstraint = expr;
} else { } else if (!expr.getSQL().equals(checkConstraintSQL)) {
checkConstraint = new ConditionAndOr(ConditionAndOr.AND, checkConstraint, expr); checkConstraint = new ConditionAndOr(ConditionAndOr.AND, checkConstraint, expr);
} }
checkConstraintSQL = getCheckConstraintSQL(session, name); checkConstraintSQL = getCheckConstraintSQL(session, name);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论