diff --git a/graphdb/graphdb.go b/graphdb/graphdb.go index 46a23b1..d0e049b 100644 --- a/graphdb/graphdb.go +++ b/graphdb/graphdb.go @@ -64,6 +64,11 @@ func IsNonUniqueNameError(err error) bool { if strings.Contains(str, "UNIQUE constraint failed") && strings.Contains(str, "edge.name") { return true } + // sqlite-3.6.20-1.el6 returns: + // Set failure: Abort due to constraint violation: constraint failed + if strings.HasSuffix(str, "constraint failed") { + return true + } return false }