Source

trac-ticketlinks / trac / db / sqlite_backend.py

Diff from to

trac/db/sqlite_backend.py

 
     def quote(self, identifier):
         """Return the quoted identifier."""
-        return "`%s`" % identifier
+        return "`%s`" % identifier.replace('`', '``')
 
     def get_last_id(self, cursor, table, column='id'):
         return cursor.lastrowid