提交 b7443b31 authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix build

上级 47551a41
......@@ -3795,9 +3795,7 @@ public class Parser {
column.setSelectivity(selectivity);
}
Expression checkConstraint = templateColumn.getCheckConstraint(session, columnName);
if (checkConstraint != null) {
column.addCheckConstraint(session, checkConstraint);
}
column.addCheckConstraint(session, checkConstraint);
}
column.setComment(comment);
column.setOriginalSQL(original);
......
......@@ -537,6 +537,9 @@ public class Column {
* @param expr the (additional) constraint
*/
public void addCheckConstraint(Session session, Expression expr) {
if (expr == null) {
return;
}
resolver = new SingleColumnResolver(this);
synchronized (this) {
String oldName = name;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论