Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3371: mysql_quote_column.diff

File mysql_quote_column.diff, 447 bytes (added by JohnDouthat@gmail.com, 3 years ago)

patch

  • lib/active_record/connection_adapters/mysql_adapter.rb

    old new  
    124124      end 
    125125 
    126126      def quote_column_name(name) #:nodoc: 
     127        name = name.to_s 
     128        name.gsub!("`", "``") 
    127129        "`#{name}`" 
    128130      end 
    129131