diff --git a/pirogue/multiple_inheritance.py b/pirogue/multiple_inheritance.py index b9ee3f4..0c4cac1 100644 --- a/pirogue/multiple_inheritance.py +++ b/pirogue/multiple_inheritance.py @@ -450,11 +450,8 @@ def __insert_trigger(self) -> str: raise_notice=( "NULL;" if self.allow_parent_only - else "RAISE NOTICE '{vn} type not known ({percent_char})', NEW.{type_name}; -- ERROR".format( + else "RAISE NOTICE '{vn} type not known (%)', NEW.{type_name}; -- ERROR".format( vn=self.view_name, - percent_char=( - "%%" if self.variables else "%" - ), # if variables, % should be escaped because cursor.execute is run with variables type_name=self.type_name, ) ), @@ -586,11 +583,8 @@ def __update_trigger(self): raise_notice=( "NULL;" if self.allow_parent_only - else "RAISE NOTICE '{vn} type not known ({percent_char})', NEW.{type_name}; -- ERROR".format( + else "RAISE NOTICE '{vn} type not known (%)', NEW.{type_name}; -- ERROR".format( vn=self.view_name, - percent_char=( - "%%" if self.variables else "%" - ), # if variables, % should be escaped because cursor.execute is run with variables type_name=self.type_name, ) ),