MCPcopy
hub / github.com/PyMySQL/PyMySQL / _read_ok_packet

Method _read_ok_packet

pymysql/connections.py:471–480  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

469 return bool(self.server_status & SERVER_STATUS.SERVER_STATUS_AUTOCOMMIT)
470
471 def _read_ok_packet(self):
472 pkt = self._read_packet()
473 if not pkt.is_ok_packet():
474 raise err.OperationalError(
475 CR.CR_COMMANDS_OUT_OF_SYNC,
476 "Command Out of Sync",
477 )
478 ok = OKPacketWrapper(pkt)
479 self.server_status = ok.server_status
480 return ok
481
482 def _send_autocommit_mode(self):
483 """Set whether or not to commit after every execute()."""

Callers 6

_send_autocommit_modeMethod · 0.95
beginMethod · 0.95
commitMethod · 0.95
rollbackMethod · 0.95
select_dbMethod · 0.95
pingMethod · 0.95

Calls 3

_read_packetMethod · 0.95
OKPacketWrapperClass · 0.85
is_ok_packetMethod · 0.80

Tested by

no test coverage detected