提交 374f6ab5 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Move comment in better place

上级 b82d4ff0
......@@ -97,12 +97,12 @@ public class ConstraintCheck extends Constraint {
boolean b;
try {
Value v = expr.getValue(session);
// Both TRUE and NULL are ok
b = v == ValueNull.INSTANCE || v.getBoolean();
} catch (DbException ex) {
throw DbException.get(ErrorCode.CHECK_CONSTRAINT_INVALID, ex,
getShortDescription());
}
// Both TRUE and NULL are ok
if (!b) {
throw DbException.get(ErrorCode.CHECK_CONSTRAINT_VIOLATED_1,
getShortDescription());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论