(self, packet)
| 1383 | self.rows = tuple(rows) |
| 1384 | |
| 1385 | def _read_row_from_packet(self, packet): |
| 1386 | row = [] |
| 1387 | for encoding, converter in self.converters: |
| 1388 | try: |
| 1389 | data = packet.read_length_coded_string() |
| 1390 | except IndexError: |
| 1391 | # No more columns in this row |
| 1392 | # See https://github.com/PyMySQL/PyMySQL/pull/434 |
| 1393 | break |
| 1394 | if data is not None: |
| 1395 | if encoding is not None: |
| 1396 | data = data.decode(encoding) |
| 1397 | if DEBUG: |
| 1398 | print("DEBUG: DATA = ", data) |
| 1399 | if converter is not None: |
| 1400 | data = converter(data) |
| 1401 | row.append(data) |
| 1402 | return tuple(row) |
| 1403 | |
| 1404 | def _get_descriptions(self): |
| 1405 | """Read a column descriptor packet for each column in the result.""" |
no test coverage detected