Other than using the Executed attribute to determine whether 'something' has been done or not, I doubt you can get this information from DBI. DBI could tell you if a transaction was started, if commands were sent to the database server, and whether or not that transaction had been committed or rolled back, but the problem is that it couldn't reliably tell whether the commands that were sent to the database resulted in changes that need to be committed or not.

Long story short, this isn't something you should be asking DBI, it's a question you would have to pose to your database, and how you find that information is going to be database dependent.


We're not surrounded, we're in a target-rich environment!

In reply to Re: Testing if DBI has a commit pending? by jasonk
in thread Testing if DBI has a commit pending? by gam3

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.