mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
fix: sql error check (#3762)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user