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