(self, packet)
| 1355 | self._read_ok_packet(ok_packet) |
| 1356 | |
| 1357 | def _check_packet_is_eof(self, packet): |
| 1358 | if not packet.is_eof_packet(): |
| 1359 | return False |
| 1360 | # TODO: Support CLIENT.DEPRECATE_EOF |
| 1361 | # 1) Add DEPRECATE_EOF to CAPABILITIES |
| 1362 | # 2) Mask CAPABILITIES with server_capabilities |
| 1363 | # 3) if server_capabilities & CLIENT.DEPRECATE_EOF: |
| 1364 | # use OKPacketWrapper instead of EOFPacketWrapper |
| 1365 | wp = EOFPacketWrapper(packet) |
| 1366 | self.warning_count = wp.warning_count |
| 1367 | self.has_next = wp.has_next |
| 1368 | return True |
| 1369 | |
| 1370 | def _read_result_packet(self, first_packet): |
| 1371 | self.field_count = first_packet.read_length_encoded_integer() |
no test coverage detected