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

21 lines
516 B
Ruby

require 'helper'
module Arel
module Visitors
describe 'the mysql visitor' do
before do
@visitor = MySQL.new Table.engine
end
###
# :'(
# http://dev.mysql.com/doc/refman/5.0/en/select.html#id3482214
it 'defaults limit to 18446744073709551615' do
stmt = Nodes::SelectStatement.new
stmt.offset = Nodes::Offset.new(1)
sql = @visitor.accept(stmt)
sql.must_be_like "SELECT LIMIT 18446744073709551615 OFFSET 1"
end
end
end
end