aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-09-22 10:23:10 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-09-22 10:23:10 -0700
commitc903c6b28933a041d42d943c6c83f98aaa81f42a (patch)
tree7cf8195f49d6f9e488ac9d6d7943b65a445761b5 /lib/arel
parent6c66b12684e7610187c96f505aefa33dfc117f22 (diff)
downloadrails-c903c6b28933a041d42d943c6c83f98aaa81f42a.tar.gz
rails-c903c6b28933a041d42d943c6c83f98aaa81f42a.tar.bz2
rails-c903c6b28933a041d42d943c6c83f98aaa81f42a.zip
connections should cache these values, so remove the cache in arel
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/visitors/to_sql.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index 095aa5279a..dea6830e8f 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -61,8 +61,6 @@ module Arel
def initialize connection
@connection = connection
@schema_cache = connection.schema_cache
- @quoted_tables = {}
- @quoted_columns = {}
end
def compile node, &block
@@ -761,11 +759,12 @@ module Arel
def quote_table_name name
return name if Arel::Nodes::SqlLiteral === name
- @quoted_tables[name] ||= @connection.quote_table_name(name)
+ @connection.quote_table_name(name)
end
def quote_column_name name
- @quoted_columns[name] ||= Arel::Nodes::SqlLiteral === name ? name : @connection.quote_column_name(name)
+ return name if Arel::Nodes::SqlLiteral === name
+ @connection.quote_column_name(name)
end
def maybe_visit thing, collector