Example #1
0
 def _escape_comment(self, comment: str) -> str:  # pylint: disable=R0201
     # This method provides a default method to escape comment strings as per
     # default standard as applied under mysql like database. This can be
     # overwritten if required to match the database specific escaping.
     return comment.translate(get_escape_translation_table())
Example #2
0
 def _escape_comment(self, comment: str) -> str:
     table = get_escape_translation_table()
     table[ord("'")] = "''"
     return comment.translate(table)