Ticket #6343: percent_column_names.diff
File percent_column_names.diff, 514 bytes (added by , 17 years ago) |
---|
-
django/db/backends/mysql/base.py
97 97 def quote_name(self, name): 98 98 if name.startswith("`") and name.endswith("`"): 99 99 return name # Quoting once is enough. 100 return "`%s`" % name 100 return "`%s`" % name.replace('%', '%%') 101 101 102 102 def random_function_sql(self): 103 103 return 'RAND()'