Skip to content
Browse files

TRUNCATE is also a MySQL DDL statement, so document this is a possibl…

…e caveat when using transactions and savepoints.
  • Loading branch information...
1 parent 4687306 commit 0e6b9695aff6500ad48c4dd9ab61343d7090b030 @FooBarWidget FooBarWidget committed Mar 24, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/transactions.rb
View
2 activerecord/lib/active_record/transactions.rb
@@ -175,6 +175,8 @@ def self.included(base)
# 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)

0 comments on commit 0e6b969

Please sign in to comment.
Something went wrong with that request. Please try again.