Method: ActiveRecord::ConnectionAdapters::MySQL::Quoting::ClassMethods#column_name_matcher
- Defined in:
- activerecord/lib/active_record/connection_adapters/mysql/quoting.rb
#column_name_matcher ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'activerecord/lib/active_record/connection_adapters/mysql/quoting.rb', line 15 def column_name_matcher / \A ( (?: # `table_name`.`column_name` | function(one or no argument) ((?:\w+\.|`\w+`\.)?(?:\w+|`\w+`) | \w+\((?:|\g<2>)\)) ) (?:(?:\s+AS)?\s+(?:\w+|`\w+`))? ) (?:\s*,\s*\g<1>)* \z /ix end |