diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-10-20 21:17:31 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-10-20 21:17:31 +0000 |
commit | 7042163d7633c1d453bcbed127d42ea27da6b939 (patch) | |
tree | 4ae064b8dbfb4433fd0ded03999574a0082138a7 /activerecord/lib/active_record | |
parent | c9fecf20ffb051ebc9270bfd787fd2964349d19a (diff) | |
download | rails-7042163d7633c1d453bcbed127d42ea27da6b939.tar.gz rails-7042163d7633c1d453bcbed127d42ea27da6b939.tar.bz2 rails-7042163d7633c1d453bcbed127d42ea27da6b939.zip |
Ensure that mysql quotes table names with database names correctly. Closes #9911 [crayz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index 6ef7bb5b1a..65faa80065 100755 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -209,7 +209,7 @@ module ActiveRecord end def quote_table_name(name) #:nodoc: - quote_column_name(name) + quote_column_name(name).gsub('.', '`.`') end def quote_string(string) #:nodoc: |