Proxy a result row to smooth over MySQL-Python driver inconsistencies.
(
self, rp: CursorResult[Any], charset: Optional[str] = None
)
| 3026 | return None |
| 3027 | |
| 3028 | def _compat_first( |
| 3029 | self, rp: CursorResult[Any], charset: Optional[str] = None |
| 3030 | ) -> Optional[_DecodingRow]: |
| 3031 | """Proxy a result row to smooth over MySQL-Python driver |
| 3032 | inconsistencies.""" |
| 3033 | |
| 3034 | row = rp.first() |
| 3035 | if row: |
| 3036 | return _DecodingRow(row, charset) |
| 3037 | else: |
| 3038 | return None |
| 3039 | |
| 3040 | def _extract_error_code( |
| 3041 | self, exception: DBAPIModule.Error |
no test coverage detected