mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
12 lines
217 B
Ruby
12 lines
217 B
Ruby
|
module Arel
|
||
|
module Visitors
|
||
|
class SQLite < Arel::Visitors::ToSql
|
||
|
private
|
||
|
def visit_Arel_Nodes_SelectStatement o
|
||
|
o.limit = -1 if o.offset && !o.limit
|
||
|
super
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|