diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-13 20:09:40 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-06-13 20:09:40 -0300 |
commit | 62207faee92c820da9fbc9cc6fe785461c2d826b (patch) | |
tree | 5c391827049475110dea8d8fafadff8f7e630d13 /lib/arel | |
parent | af07bd12fd182de04a2829a5db3ae1abac299174 (diff) | |
download | rails-62207faee92c820da9fbc9cc6fe785461c2d826b.tar.gz rails-62207faee92c820da9fbc9cc6fe785461c2d826b.tar.bz2 rails-62207faee92c820da9fbc9cc6fe785461c2d826b.zip |
Do not generate NOT IN (NULL) when empty right
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index a6be451e6f..cb8df8329a 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -467,7 +467,7 @@ key on UpdateManager using UpdateManager#key= alias :visit_Arel_Nodes_Division :visit_Arel_Nodes_InfixOperation def visit_Array o - o.empty? ? 'NULL' : o.map { |x| visit x }.join(', ') + o.map { |x| visit x }.join(', ') end def quote value, column = nil |