From bca49f4e5beaa135a9b96270426968793550b708 Mon Sep 17 00:00:00 2001 From: Edgars Beigarts Date: Fri, 26 Aug 2011 15:19:36 +0300 Subject: Support locking in Oracle --- test/visitors/test_oracle.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/visitors') diff --git a/test/visitors/test_oracle.rb b/test/visitors/test_oracle.rb index b53690a1a8..9a5fa304ab 100644 --- a/test/visitors/test_oracle.rb +++ b/test/visitors/test_oracle.rb @@ -143,6 +143,13 @@ module Arel ( SELECT * FROM users WHERE age > 10 MINUS SELECT * FROM users WHERE age > 20 ) } end + + describe 'locking' do + it 'defaults to FOR UPDATE when locking' do + node = Nodes::Lock.new(Arel.sql('FOR UPDATE')) + @visitor.accept(node).must_be_like "FOR UPDATE" + end + end end end end -- cgit v1.2.3