diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 17:04:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 17:04:08 -0700 |
commit | 93036b168b2877f2fe314b7fa0e8701878e32602 (patch) | |
tree | 844da68bfa471e64559cc98d12be2863c11cfa14 /lib/arel/visitors | |
parent | a6a7c75ff486657909e20e2f48764136caa5e87e (diff) | |
download | rails-93036b168b2877f2fe314b7fa0e8701878e32602.tar.gz rails-93036b168b2877f2fe314b7fa0e8701878e32602.tar.bz2 rails-93036b168b2877f2fe314b7fa0e8701878e32602.zip |
fix sqlite visitor
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/sqlite.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/arel/visitors/sqlite.rb b/lib/arel/visitors/sqlite.rb index 2a509e95b5..ff6fc1fea4 100644 --- a/lib/arel/visitors/sqlite.rb +++ b/lib/arel/visitors/sqlite.rb @@ -4,10 +4,11 @@ module Arel private # Locks are not supported in SQLite - def visit_Arel_Nodes_Lock o + def visit_Arel_Nodes_Lock o, collector + collector end - def visit_Arel_Nodes_SelectStatement o + def visit_Arel_Nodes_SelectStatement o, collector o.limit = Arel::Nodes::Limit.new(-1) if o.offset && !o.limit super end |