MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _escape_string

Method _escape_string

pymysql/connections.py:567–570  ·  view source on GitHub ↗
(self, s: str)

Source from the content-addressed store, hash-verified

565 return self.escape(obj)
566
567 def _escape_string(self, s: str):
568 if self.server_status & SERVER_STATUS.SERVER_STATUS_NO_BACKSLASH_ESCAPES:
569 return s.replace("'", "''") # Escape only single quote. Use '' quote
570 return converters.escape_string(s)
571
572 def cursor(self, cursor=None):
573 """

Callers 1

escapeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected