diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2015-09-01 12:30:37 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2015-09-01 12:30:37 +0000 |
commit | a7e9dd20114c812d4fba532f598791fbd94b2bac (patch) | |
tree | 1296dc148d88d8bfe75d928f52bae3f4162bbdea | |
parent | d5432b4616ff43fbb14540d351eed351e21bb20e (diff) | |
download | rails-a7e9dd20114c812d4fba532f598791fbd94b2bac.tar.gz rails-a7e9dd20114c812d4fba532f598791fbd94b2bac.tar.bz2 rails-a7e9dd20114c812d4fba532f598791fbd94b2bac.zip |
No need to quote limit for Oracle12 visitor
-rw-r--r-- | test/visitors/test_oracle12.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitors/test_oracle12.rb b/test/visitors/test_oracle12.rb index cfa130fcab..df0f01b30b 100644 --- a/test/visitors/test_oracle12.rb +++ b/test/visitors/test_oracle12.rb @@ -23,7 +23,7 @@ module Arel it 'generates select options offset then limit' do stmt = Nodes::SelectStatement.new stmt.offset = Nodes::Offset.new(1) - stmt.limit = Nodes::Limit.new(Nodes.build_quoted(10)) + stmt.limit = Nodes::Limit.new(10) sql = compile(stmt) sql.must_be_like "SELECT OFFSET 1 ROWS FETCH FIRST 10 ROWS ONLY" end @@ -31,7 +31,7 @@ module Arel describe 'locking' do it 'removes limit when locking' do stmt = Nodes::SelectStatement.new - stmt.limit = Nodes::Limit.new(Nodes.build_quoted(10)) + stmt.limit = Nodes::Limit.new(10) stmt.lock = Nodes::Lock.new(Arel.sql('FOR UPDATE')) sql = compile(stmt) sql.must_be_like "SELECT FOR UPDATE" |