From 801a1516d0a219ce530a45f0a2e65a35b04c30eb Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Mon, 5 May 2014 23:10:38 +0900 Subject: Support to add the casting node to the AST at build time Ref https://github.com/rails/arel/commit/93d72131bcc24ccb5536bec672d2dac94f8de651 --- lib/arel/visitors/oracle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/arel/visitors/oracle.rb b/lib/arel/visitors/oracle.rb index 699b52fe9a..8a80faaa97 100644 --- a/lib/arel/visitors/oracle.rb +++ b/lib/arel/visitors/oracle.rb @@ -17,7 +17,7 @@ module Arel if o.limit && o.offset o = o.dup - limit = o.limit.expr.to_i + limit = o.limit.expr.expr offset = o.offset o.offset = nil collector << " -- cgit v1.2.3