Skip to content

Commit

Permalink
Single error wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ostafen committed May 27, 2024
1 parent a8e1f6c commit b46f98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedded/sql/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ func checkConstraints(tx *SQLTx, checks map[string]ValueExp, row *Row, table str
for _, check := range checks {
val, err := check.reduce(tx, row, table)
if err != nil {
return fmt.Errorf("%w: %w", ErrCheckConstraintViolation, err)
return fmt.Errorf("%w: %s", ErrCheckConstraintViolation, err)
}

if val.Type() != BooleanType {
Expand Down

0 comments on commit b46f98e

Please sign in to comment.