# File lib/transaction/simple.rb, line 110
  def transaction_open?(name = nil)
    defined? @__transaction_checkpoint__ or @__transaction_checkpoint__ = nil

    has_t = nil

    if name.nil?
      has_t = (not @__transaction_checkpoint__.nil?)
    else
      has_t = ((not @__transaction_checkpoint__.nil?) and
               @__transaction_names__.include?(name))
    end

    ___tdebug '>', "%s [%s]", ___tmessage[:transaction], ___tmessage[has_t ? :opened : :closed]

    has_t
  end