diff options
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-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 ae90c0c4b6..abec5317ca 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -97,7 +97,7 @@ module Arel end def visit_Arel_Nodes_Offset o - "OFFSET #{visit o.value}" + "OFFSET #{visit o.expr}" end # FIXME: this does nothing on SQLLite3, but should do things on other |