1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/arel/visitors/sqlite.rb

18 lines
369 B
Ruby
Raw Normal View History

module Arel
module Visitors
class SQLite < Arel::Visitors::ToSql
private
# Locks are not supported in SQLite
2014-04-08 20:04:08 -04:00
def visit_Arel_Nodes_Lock o, collector
collector
end
2014-04-08 20:04:08 -04:00
def visit_Arel_Nodes_SelectStatement o, collector
o.limit = Arel::Nodes::Limit.new(-1) if o.offset && !o.limit
super
end
end
end
end