mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Fixed #21844: Move quote_parameter off of Operations and rename
This commit is contained in:
		| @@ -24,3 +24,8 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): | ||||
|  | ||||
|     sql_create_pk = "ALTER TABLE %(table)s ADD CONSTRAINT %(name)s PRIMARY KEY (%(columns)s)" | ||||
|     sql_delete_pk = "ALTER TABLE %(table)s DROP PRIMARY KEY" | ||||
|  | ||||
|     def quote_value(self, value): | ||||
|         # Inner import to allow module to fail to load gracefully | ||||
|         import MySQLdb.converters | ||||
|         return MySQLdb.escape(value, MySQLdb.converters.conversions) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user