aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2009-03-24 17:05:21 +0100
committerHongli Lai (Phusion) <hongli@phusion.nl>2009-03-24 17:05:21 +0100
commit0e6b9695aff6500ad48c4dd9ab61343d7090b030 (patch)
tree0fa9b28c27d58a6c83000603f391366a346efa4f
parent4687306c2c1d94b0db6d66625867d881838b76d6 (diff)
downloadrails-0e6b9695aff6500ad48c4dd9ab61343d7090b030.tar.gz
rails-0e6b9695aff6500ad48c4dd9ab61343d7090b030.tar.bz2
rails-0e6b9695aff6500ad48c4dd9ab61343d7090b030.zip
TRUNCATE is also a MySQL DDL statement, so document this is a possible caveat when using transactions and savepoints.
-rw-r--r--activerecord/lib/active_record/transactions.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb
index 0b6e52c79b..b059eb7f6f 100644
--- a/activerecord/lib/active_record/transactions.rb
+++ b/activerecord/lib/active_record/transactions.rb
@@ -175,6 +175,8 @@ module ActiveRecord
# end # RELEASE savepoint active_record_1
# # ^^^^ BOOM! database error!
# end
+ #
+ # Note that "TRUNCATE" is also a MySQL DDL statement!
module ClassMethods
# See ActiveRecord::Transactions::ClassMethods for detailed documentation.
def transaction(options = {}, &block)