diff options
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 1 | ||||
-rw-r--r-- | test/visitors/test_to_sql.rb | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index e68890004a..f52ce101c0 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -263,6 +263,7 @@ module Arel def visit_Fixnum o; o end alias :visit_Arel_Nodes_SqlLiteral :visit_Fixnum alias :visit_Arel_SqlLiteral :visit_Fixnum # This is deprecated + alias :visit_Bignum :visit_Fixnum def visit_String o; quote(o, @last_column) end diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index b133e8b64e..d7cf71961a 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -29,6 +29,10 @@ module Arel @visitor.accept 2.14 end + it "should visit_Bignum" do + @visitor.accept 8787878092 + end + it "should visit_Hash" do @visitor.accept({:a => 1}) end |