Ticket #6343: percent_column_names.diff

File percent_column_names.diff, 514 bytes (added by Daniel Pope <dan@…>, 17 years ago)

Patch for MySQL backend

  • django/db/backends/mysql/base.py

     
    9797    def quote_name(self, name):
    9898        if name.startswith("`") and name.endswith("`"):
    9999            return name # Quoting once is enough.
    100         return "`%s`" % name
     100        return "`%s`" % name.replace('%', '%%')
    101101
    102102    def random_function_sql(self):
    103103        return 'RAND()'
Back to Top