diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-28 14:33:56 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-28 14:33:56 +0530 |
commit | 5156507e13bb17f1852576acfd921a39e06de175 (patch) | |
tree | e8ebf0a849daa02270da9797cbb9b0846e370315 /activerecord/lib/active_record/connection_adapters/abstract | |
parent | b95cc72429f83304b8e882c3637dfb3135a571ed (diff) | |
download | rails-5156507e13bb17f1852576acfd921a39e06de175.tar.gz rails-5156507e13bb17f1852576acfd921a39e06de175.tar.bz2 rails-5156507e13bb17f1852576acfd921a39e06de175.zip |
Remove locking related unused code
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index be89873632..027d736484 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -181,18 +181,6 @@ module ActiveRecord # done if the transaction block raises an exception or returns false. def rollback_db_transaction() end - # Appends a locking clause to an SQL statement. - # This method *modifies* the +sql+ parameter. - # # SELECT * FROM suppliers FOR UPDATE - # add_lock! 'SELECT * FROM suppliers', :lock => true - # add_lock! 'SELECT * FROM suppliers', :lock => ' FOR UPDATE' - def add_lock!(sql, options) - case lock = options[:lock] - when true; sql << ' FOR UPDATE' - when String; sql << " #{lock}" - end - end - def default_sequence_name(table, column) nil end |