Proxy a result row to smooth over MySQL-Python driver inconsistencies.
(
self, rp: CursorResult[Unpack[TupleAny]], charset: Optional[str] = None
)
| 3020 | return None |
| 3021 | |
| 3022 | def _compat_first( |
| 3023 | self, rp: CursorResult[Unpack[TupleAny]], charset: Optional[str] = None |
| 3024 | ) -> Optional[_DecodingRow]: |
| 3025 | """Proxy a result row to smooth over MySQL-Python driver |
| 3026 | inconsistencies.""" |
| 3027 | |
| 3028 | row = rp.first() |
| 3029 | if row: |
| 3030 | return _DecodingRow(row, charset) |
| 3031 | else: |
| 3032 | return None |
| 3033 | |
| 3034 | def _extract_error_code( |
| 3035 | self, exception: DBAPIModule.Error |
no test coverage detected