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

Method _escape_string

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

Source from the content-addressed store, hash-verified

555 return self.escape(obj)
556
557 def _escape_string(self, s: str):
558 if self.server_status & SERVER_STATUS.SERVER_STATUS_NO_BACKSLASH_ESCAPES:
559 return s.replace("'", "''") # Escape only single quote. Use '' quote
560 return converters.escape_string(s)
561
562 def cursor(self, cursor=None):
563 """

Callers 1

escapeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected