diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 18:01:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 18:01:45 -0700 |
commit | 458ef3fb7d51ef2e9d1cd9513bdc225daffe8146 (patch) | |
tree | e67effbc092eee449f2368809c1a3980b6c976ac /lib/arel | |
parent | 77701cb501fe0dfe83ec9d13163c85423bc2770d (diff) | |
download | rails-458ef3fb7d51ef2e9d1cd9513bdc225daffe8146.tar.gz rails-458ef3fb7d51ef2e9d1cd9513bdc225daffe8146.tar.bz2 rails-458ef3fb7d51ef2e9d1cd9513bdc225daffe8146.zip |
inserting false works a bit better
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 761f315763..66e997a986 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -43,7 +43,7 @@ module Arel def visit_Arel_Nodes_Values o "VALUES (#{o.expressions.map { |value| - value ? visit(value) : 'NULL' + value.nil? ? 'NULL' : visit(value) }.join ', '})" end |