diff options
author | Noemj <olli.rissanen@helsinki.fi> | 2013-01-29 21:39:36 +0200 |
---|---|---|
committer | Noemj <olli.rissanen@helsinki.fi> | 2013-01-29 21:39:36 +0200 |
commit | 9c514f39bd040c45ffa7df43bab24c2a0c88c6e3 (patch) | |
tree | 3084f510da42b7c35c06490aebe5b7d173dbdb34 /lib | |
parent | 38d0a222e275d917a2c1d093b24457bafb600a00 (diff) | |
download | rails-9c514f39bd040c45ffa7df43bab24c2a0c88c6e3.tar.gz rails-9c514f39bd040c45ffa7df43bab24c2a0c88c6e3.tar.bz2 rails-9c514f39bd040c45ffa7df43bab24c2a0c88c6e3.zip |
Denied the quoting of SqlLiterals
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index c4c2e6fe0f..050a9b2e63 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -589,6 +589,7 @@ key on UpdateManager using UpdateManager#key= end def quote value, column = nil + return value if Arel::Nodes::SqlLiteral === value @connection.quote value, column end |