mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 16:37:24 +00:00
fix: sql error check (#3762)
This commit is contained in:
parent
d65761f388
commit
6506ce537d
@ -284,7 +284,7 @@ func isErrAlreadyExists(err error) bool {
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
return sqlErr.Routine == "NewRelationAlreadyExistsError"
|
||||
return sqlErr.Code == "42P07"
|
||||
}
|
||||
|
||||
func createTableStatement(table *Table, tableName string, suffix string) string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user