Changeset 7980
- Timestamp:
- 10/20/07 21:17:31 (1 year ago)
- Files:
-
- trunk/activerecord/CHANGELOG (modified) (1 diff)
- trunk/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb (modified) (1 diff)
- trunk/activerecord/test/active_schema_test_mysql.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r7974 r7980 1 1 *SVN* 2 3 * Ensure that mysql quotes table names with database names correctly. Closes #9911 [crayz] 4 5 "foo.bar" => "`foo`.`bar`" 2 6 3 7 * Complete the assimilation of Sexy Migrations from ErrFree [Chris Wanstrath, PJ Hyett] trunk/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
r7932 r7980 210 210 211 211 def quote_table_name(name) #:nodoc: 212 quote_column_name(name) 212 quote_column_name(name).gsub('.', '`.`') 213 213 end 214 214 trunk/activerecord/test/active_schema_test_mysql.rb
r7932 r7980 33 33 end 34 34 35 def test_drop_table_with_specific_database 36 assert_equal "DROP TABLE `otherdb`.`people`", drop_table('otherdb.people') 37 end 38 35 39 private 36 40 def method_missing(method_symbol, *arguments)