diff --git a/oslo_db/sqlalchemy/exc_filters.py b/oslo_db/sqlalchemy/exc_filters.py index 5df1eb74..777fda63 100644 --- a/oslo_db/sqlalchemy/exc_filters.py +++ b/oslo_db/sqlalchemy/exc_filters.py @@ -192,7 +192,7 @@ def _sqlite_dupe_key_error(integrity_error, match, engine_name, is_disconnect): "is not present in table " "\"(?P[^\"]+)\".") @filters("mysql", sqla_exc.IntegrityError, - r".* 'Cannot add or update a child row: " + r".* u?'Cannot add or update a child row: " 'a foreign key constraint fails \([`"].+[`"]\.[`"](?P.+)[`"], ' 'CONSTRAINT [`"](?P.+)[`"] FOREIGN KEY ' '\([`"](?P.+)[`"]\) REFERENCES [`"](?P.+)[`"] ')