From c18bcd70d7246b521092c13271d8bc66b30e4659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C4=B1l=20S=CC=A7enay?= Date: Thu, 25 Apr 2024 21:29:09 +0300 Subject: [PATCH] Add new error for "Violation Check Constraint" --- errors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/errors.go b/errors.go index cd76f1f5..025f5d64 100644 --- a/errors.go +++ b/errors.go @@ -49,4 +49,6 @@ var ( ErrDuplicatedKey = errors.New("duplicated key not allowed") // ErrForeignKeyViolated occurs when there is a foreign key constraint violation ErrForeignKeyViolated = errors.New("violates foreign key constraint") + // ErrCheckConstraintViolated occurs when there is a check constraint violation + ErrCheckConstraintViolated = errors.New("violates check constraint") )