Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit a6e0fbb

Browse files
author
alishakawaguchi
authored
Updates critical errors list to handle Mysql and SqlServer not null violations (#3475)
1 parent f739ea2 commit a6e0fbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

worker/pkg/benthos/utils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ func IsCriticalError(errMsg string) bool {
4747
"ON CONFLICT does not support deferrable unique constraints",
4848
"ON CONFLICT",
4949
"SQLSTATE", // any sqlstate error should result in ending
50+
"doesn't have a default value",
51+
"column does not allow nulls",
5052
}
5153

5254
for _, errStr := range criticalErrors {
@@ -71,6 +73,8 @@ func IsGenerateJobCriticalError(errMsg string) bool {
7173
"incorrect time value",
7274
"does not exist",
7375
"syntax error at or near",
76+
"doesn't have a default value",
77+
"column does not allow nulls",
7478
}
7579

7680
for _, errStr := range criticalErrors {

0 commit comments

Comments
 (0)