From a5991d849175c2ae9b803486f61b610fad9fd87e Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 26 Mar 2006 04:13:25 +0000 Subject: Change periods (.) in table aliases to _'s. Closes #4251 [jeff@ministrycentered.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/connection_adapters') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 8c94f07db9..c005282223 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -15,7 +15,7 @@ module ActiveRecord # Truncates a table alias according to the limits of the current adapter. def table_alias_for(table_name) - table_name[0..table_alias_length-1] + table_name[0..table_alias_length-1].gsub(/\./, '_') end # def tables(name = nil) end -- cgit v1.2.3