docs: def quote_name(self, name):
          """
          Returns a quoted version of the given table, index or column name. Does
          not quote the given name if it's already been quoted.
          """
          if name.startswith(self.left_sql_quote) and name.endswith(self.right_sql_quote):
              return name # Quoting once is enough.
          return '%s%s%s' % (self.left_sql_quote, name, self.right_sql_quote)