    # File lib/active_record/vendor/simple.rb, line 310
        def transaction_open?(name = nil)
          if name.nil?
            if Transaction::Simple.debugging?
              Transaction::Simple.debug_io << "Transaction " <<
                "[#{(@__transaction_checkpoint__.nil?) ? 'closed' : 'open'}]\n"
            end
            return (not @__transaction_checkpoint__.nil?)
          else
            if Transaction::Simple.debugging?
              Transaction::Simple.debug_io << "Transaction(#{name.inspect}) " <<
                "[#{(@__transaction_checkpoint__.nil?) ? 'closed' : 'open'}]\n"
            end
            return ((not @__transaction_checkpoint__.nil?) and @__transaction_names__.include?(name))
          end
        end