diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-17 18:01:35 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-17 18:01:35 -0400 |
commit | bc0510c0027c28a2b45c8c51f75edaf40d6f4536 (patch) | |
tree | e9647883019f2b1d736b12007f1f05262484795b /lib | |
parent | 0eeb2da5c4174ce023d248ef426840d76d5ce765 (diff) | |
download | rails-bc0510c0027c28a2b45c8c51f75edaf40d6f4536.tar.gz rails-bc0510c0027c28a2b45c8c51f75edaf40d6f4536.tar.bz2 rails-bc0510c0027c28a2b45c8c51f75edaf40d6f4536.zip |
do not cache sql literal values
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 312f92ea2f..29e965bef8 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -416,7 +416,8 @@ key on UpdateManager using UpdateManager#key= end def quote_table_name name - @quoted_tables[name] ||= Arel::Nodes::SqlLiteral === name ? name : @connection.quote_table_name(name) + return name if Arel::Nodes::SqlLiteral === name + @quoted_tables[name] ||= @connection.quote_table_name(name) end def quote_column_name name |