Skip to content

Commit

Permalink
Fix inconsistent check enforcement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Apr 29, 2021
1 parent 0767fe4 commit e0ff43f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/plan/alter_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ func (c *CreateCheck) Execute(ctx *sql.Context) error {
if row == nil || err != io.EOF {
break
}
res, err = c.Check.Expr.Eval(ctx, row)

res, err = sql.EvaluateCondition(ctx, c.Check.Expr, row)
if err != nil {
return err
}
Expand Down

0 comments on commit e0ff43f

Please sign in to comment.