diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-26 10:23:11 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-26 10:23:11 -0700 |
commit | 6c7575f8e8e7b741c2ca30aff86fe566ee4d361f (patch) | |
tree | 246d9abe8c1d4a428c450276ef25d67d06161827 /test/visitors/test_sqlite.rb | |
parent | 2aac990e4d68cc3cbf86ecc9565723b07f22c962 (diff) | |
parent | 481ccefedd407c1f8941596b03e72cfe35c42d41 (diff) | |
download | rails-6c7575f8e8e7b741c2ca30aff86fe566ee4d361f.tar.gz rails-6c7575f8e8e7b741c2ca30aff86fe566ee4d361f.tar.bz2 rails-6c7575f8e8e7b741c2ca30aff86fe566ee4d361f.zip |
Merge pull request #78 from ebeigarts/master
Support locking by default and disable it only for SQLite
Diffstat (limited to 'test/visitors/test_sqlite.rb')
-rw-r--r-- | test/visitors/test_sqlite.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/visitors/test_sqlite.rb b/test/visitors/test_sqlite.rb index 5b81ea90c5..c06f554ea4 100644 --- a/test/visitors/test_sqlite.rb +++ b/test/visitors/test_sqlite.rb @@ -13,6 +13,11 @@ module Arel sql = @visitor.accept(stmt) sql.must_be_like "SELECT LIMIT -1 OFFSET 1" end + + it 'does not support locking' do + node = Nodes::Lock.new(Arel.sql('FOR UPDATE')) + @visitor.accept(node).must_be_nil + end end end end |