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 e0fa623 commit 5c71923Copy full SHA for 5c71923
test/db/firebird/simple_test.rb
@@ -125,6 +125,18 @@ def test_raw_insert_bind_param_with_q_mark_deprecated; end
125
assert_kind_of Arel::Visitors::Firebird, visitor
126
end if ar_version('3.0')
127
128
+ def test_arel_visitor_limit
129
+ assert_equal Entry.limit(3).to_sql, "SELECT FIRST 3 \"ENTRIES\".* FROM \"ENTRIES\" "
130
+ end
131
+
132
+ def test_arel_visitor_offset
133
+ assert_equal Entry.offset(3).to_sql, "SELECT SKIP 3 \"ENTRIES\".* FROM \"ENTRIES\" "
134
135
136
+ def test_arel_visitor_limit_and_offset
137
+ sql = "SELECT FIRST 3 SKIP 3 \"ENTRIES\".* FROM \"ENTRIES\" "
138
+ assert_equal Entry.limit(3).offset(3).to_sql, sql
139
140
end
141
142
class FirebirdHasManyThroughTest < Test::Unit::TestCase
0 commit comments