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

Method _check_packet_is_eof

pymysql/connections.py:1367–1378  ·  view source on GitHub ↗
(self, packet)

Source from the content-addressed store, hash-verified

1365 self._read_ok_packet(ok_packet)
1366
1367 def _check_packet_is_eof(self, packet):
1368 if not packet.is_eof_packet():
1369 return False
1370 # TODO: Support CLIENT.DEPRECATE_EOF
1371 # 1) Add DEPRECATE_EOF to CAPABILITIES
1372 # 2) Mask CAPABILITIES with server_capabilities
1373 # 3) if server_capabilities & CLIENT.DEPRECATE_EOF:
1374 # use OKPacketWrapper instead of EOFPacketWrapper
1375 wp = EOFPacketWrapper(packet)
1376 self.warning_count = wp.warning_count
1377 self.has_next = wp.has_next
1378 return True
1379
1380 def _read_result_packet(self, first_packet):
1381 self.field_count = first_packet.read_length_encoded_integer()

Callers 3

_read_rowdata_packetMethod · 0.95

Calls 2

EOFPacketWrapperClass · 0.85
is_eof_packetMethod · 0.80

Tested by

no test coverage detected