diff options
author | Edgars Beigarts <edgars.beigarts@makit.lv> | 2011-08-26 15:19:36 +0300 |
---|---|---|
committer | Edgars Beigarts <edgars.beigarts@makit.lv> | 2011-08-26 15:19:36 +0300 |
commit | bca49f4e5beaa135a9b96270426968793550b708 (patch) | |
tree | ef905cfffe43295268b7dc963a4b263b1598ce6a /lib/arel/visitors | |
parent | 83a5d4d4e37a2c72824315597cb8b737f37b7960 (diff) | |
download | rails-bca49f4e5beaa135a9b96270426968793550b708.tar.gz rails-bca49f4e5beaa135a9b96270426968793550b708.tar.bz2 rails-bca49f4e5beaa135a9b96270426968793550b708.zip |
Support locking in Oracle
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/oracle.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/visitors/oracle.rb b/lib/arel/visitors/oracle.rb index 375f7dbfe9..43a382886c 100644 --- a/lib/arel/visitors/oracle.rb +++ b/lib/arel/visitors/oracle.rb @@ -3,6 +3,10 @@ module Arel class Oracle < Arel::Visitors::ToSql private + def visit_Arel_Nodes_Lock o + visit o.expr + end + def visit_Arel_Nodes_SelectStatement o o = order_hacks(o) |