(self, packet)
| 1311 | self._read_ok_packet(ok_packet) |
| 1312 | |
| 1313 | def _check_packet_is_eof(self, packet): |
| 1314 | if not packet.is_eof_packet(): |
| 1315 | return False |
| 1316 | # TODO: Support CLIENT.DEPRECATE_EOF |
| 1317 | # 1) Add DEPRECATE_EOF to CAPABILITIES |
| 1318 | # 2) Mask CAPABILITIES with server_capabilities |
| 1319 | # 3) if server_capabilities & CLIENT.DEPRECATE_EOF: |
| 1320 | # use OKPacketWrapper instead of EOFPacketWrapper |
| 1321 | wp = EOFPacketWrapper(packet) |
| 1322 | self.warning_count = wp.warning_count |
| 1323 | self.has_next = wp.has_next |
| 1324 | return True |
| 1325 | |
| 1326 | def _read_result_packet(self, first_packet): |
| 1327 | self.field_count = first_packet.read_length_encoded_integer() |
no test coverage detected