(self, connection: Connection)
| 3710 | return collations |
| 3711 | |
| 3712 | def _detect_sql_mode(self, connection: Connection) -> None: |
| 3713 | setting = self._fetch_setting(connection, "sql_mode") |
| 3714 | |
| 3715 | if setting is None: |
| 3716 | util.warn( |
| 3717 | "Could not retrieve SQL_MODE; please ensure the " |
| 3718 | "MySQL user has permissions to SHOW VARIABLES" |
| 3719 | ) |
| 3720 | self._sql_mode = "" |
| 3721 | else: |
| 3722 | self._sql_mode = setting or "" |
| 3723 | |
| 3724 | def _detect_ansiquotes(self, connection: Connection) -> None: |
| 3725 | """Detect and adjust for the ANSI_QUOTES sql mode.""" |
no test coverage detected