Permalink
Browse files

Merge branch 'master' of github.com:rails/arel

* 'master' of github.com:rails/arel:
  Added Bignum to visitor
  • Loading branch information...
2 parents ec6ac66 + 0e8388b commit f515283f5190096cd3b1cfe0312c723cdeb542c1 @tenderlove tenderlove committed Oct 26, 2010
Showing with 5 additions and 0 deletions.
  1. +1 −0 lib/arel/visitors/to_sql.rb
  2. +4 −0 test/visitors/test_to_sql.rb
@@ -263,6 +263,7 @@ def visit_Arel_Attributes_Attribute o
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
@@ -29,6 +29,10 @@ module Visitors
@visitor.accept 2.14
end
+ it "should visit_Bignum" do
+ @visitor.accept 8787878092
+ end
+
it "should visit_Hash" do
@visitor.accept({:a => 1})
end

0 comments on commit f515283

Please sign in to comment.