Skip to content
Browse files

Added an additional test since skip/limit can not be used in reverse …

…order
  • Loading branch information...
1 parent 157969a commit 0d39cbe523206c90f4a3eaf9279f882510f375c5 @Khronos Khronos committed May 16, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/visitors/test_informix.rb
View
8 test/visitors/test_informix.rb
@@ -29,6 +29,14 @@ module Visitors
sql.must_be_like "SELECT SKIP 10"
end
+ it 'uses SKIP before LIMIT' do
+ stmt = Nodes::SelectStatement.new
+ stmt.limit = Nodes::Limit.new(1)
+ stmt.offset = Nodes::Offset.new(1)
+ sql = @visitor.accept(stmt)
+ sql.must_be_like "SELECT SKIP 1 LIMIT 1"
+ end
+
end
end
end

0 comments on commit 0d39cbe

Please sign in to comment.
Something went wrong with that request. Please try again.