Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Bignum to visitor

  • Loading branch information...
commit 0e8388bc2bba07d9b29fb716c2ba774360ad6aa4 1 parent c66f025
@invadersmustdie invadersmustdie authored tenderlove committed
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
View
1  lib/arel/visitors/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
View
4 test/visitors/test_to_sql.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.