We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a283d commit af3fb5cCopy full SHA for af3fb5c
test/cases/offset_and_limit_test_sqlserver.rb
@@ -16,14 +16,6 @@ class OffsetAndLimitTestSqlserver < ActiveRecord::TestCase
16
assert_sql(/SELECT TOP \(10\)/) { Book.limit(10).all }
17
end
18
19
- should 'allow sql literal for limit' do
20
- assert_sql(/SELECT TOP \(3-2\)/) { Book.limit(Arel.sql('3-2')).all }
21
- assert_sql(/SELECT TOP \(SELECT 2 AS \[count\]\)/) do
22
- books = Book.all :limit => Arel.sql('SELECT 2 AS [count]')
23
- assert_equal 2, books.size
24
- end
25
26
-
27
28
29
context 'When selecting with offset' do
0 commit comments