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

Move comment in better place

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