(self, value)
| 41 | return "ALTER TABLE %(table)s DROP CHECK %(name)s" |
| 42 | |
| 43 | def quote_value(self, value): |
| 44 | self.connection.ensure_connection() |
| 45 | # MySQLdb escapes to string, PyMySQL to bytes. |
| 46 | quoted = self.connection.connection.escape( |
| 47 | value, self.connection.connection.encoders |
| 48 | ) |
| 49 | if isinstance(value, str) and isinstance(quoted, bytes): |
| 50 | quoted = quoted.decode() |
| 51 | return quoted |
| 52 | |
| 53 | def _is_limited_data_type(self, field): |
| 54 | db_type = field.db_type(self.connection) |