def quote_column_name(name) #:nodoc:
      name = name.to_s
      if /^(references|integer|key|group|year)$/i =~ name
        %Q{"#{name.upcase}"}
      elsif /[A-Z]/ =~ name && /[a-z]/ =~ name
        %Q{"#{name}"}
      elsif name =~ /[\s-]/
        %Q{"#{name.upcase}"}
      elsif name =~ /^[_\d]/
        %Q{"#{name.upcase}"}
      else
        name
      end
    end
def quote_column_name(name) #:nodoc:
      name = name.to_s
      if /^(references|integer|key|group|year)$/i =~ name
        %Q{"#{name.upcase}"}
      elsif /[A-Z]/ =~ name && /[a-z]/ =~ name
        %Q{"#{name}"}
      elsif name =~ /[\s-]/
        %Q{"#{name.upcase}"}
      elsif name =~ /^[_\d]/
        %Q{"#{name.upcase}"}
      else
        name
      end
    end
For DDL it appears you can quote "" column names, but in queries (like insert it errors out?)