(self, packet)
| 1425 | self.rows = tuple(rows) |
| 1426 | |
| 1427 | def _read_row_from_packet(self, packet): |
| 1428 | row = [] |
| 1429 | for encoding, converter in self.converters: |
| 1430 | try: |
| 1431 | data = packet.read_length_coded_string() |
| 1432 | except IndexError: |
| 1433 | # No more columns in this row |
| 1434 | # See https://github.com/PyMySQL/PyMySQL/pull/434 |
| 1435 | break |
| 1436 | if data is not None: |
| 1437 | if encoding is not None: |
| 1438 | data = data.decode(encoding) |
| 1439 | if DEBUG: |
| 1440 | print("DEBUG: DATA = ", data) |
| 1441 | if converter is not None: |
| 1442 | data = converter(data) |
| 1443 | row.append(data) |
| 1444 | return tuple(row) |
| 1445 | |
| 1446 | def _get_descriptions(self): |
| 1447 | """Read a column descriptor packet for each column in the result.""" |
no test coverage detected