Permalink
Commits on Mar 30, 2011
  1. Merge branch 'fix-verify-bound-params'

    wu-lee committed Mar 30, 2011
    * fix-verify-bound-params:
      Fix DBD::Mock::Session->verify_bound_params to check for state exhaustion
      A test showing DBD::Mock::Session->verify_bound_params doesn't check for session exhaustion
      Add DBD::Mock::Session->current_state method
  2. A test showing DBD::Mock::Session->verify_bound_params doesn't check …

    wu-lee committed Mar 30, 2011
    …for session exhaustion
    
    Basically it succeeds despite there being no states left to verify,
    and on return the ->execute method fails with an unhelpful error
    "Can't use an undefined value # as an ARRAY reference at
    ../lib/DBD/Mock.pm line 635."
  3. Add DBD::Mock::Session->current_state method

    wu-lee committed Mar 30, 2011
    This just makes the code simpler to follow. Particularly the portion
    in validate_bound_params where results are loaded into the $tracker
    object.
  4. Merge branch 'rt66815'

    wu-lee committed Mar 30, 2011
    * rt66815:
      Fix bug RT#66815 - check statement handles are valid before using them
      A test showing DBD::Mock->begin_work, commit and rollback don't detect ->prepare failure
  5. Fix bug RT#66815 - check statement handles are valid before using them

    wu-lee committed Mar 25, 2011
    $dbh->prepare does not guarantee to return a valid statement handle.
    It may return a false value.  So check the returned value, and abort
    if it is false, otherwise the error caused ->prepare to fail will get
    overwritten by a less helpful one which says "Can't call method
    'execute' on an undefined value" error.
  6. A test showing DBD::Mock->begin_work, commit and rollback don't detec…

    wu-lee committed Mar 30, 2011
    …t ->prepare failure
    
    This is reported in RT ticket #66815
    
    Basically any call to ->begin_work, ->commit, >rollback made when
    their internal call to ->prepare returns an invalid statement handle
    will not notice and proceed to use it anyway.
    
    In particular, this happens when a DBD::Mock::Session is in effect,
    and the session state list has been exhausted.  When this happens, the
    method in question fails with an unhelpful error "Can't use an
    undefined value as an ARRAY reference at ../lib/DBD/Mock.pm line
    635", masking the real reason.
Commits on Jun 22, 2009
  1. Fix typo

    autarch committed Jun 22, 2009
  2. Added RT ticket

    autarch committed Jun 22, 2009
Commits on Feb 12, 2009
  1. Fixed a variable name mismatch

    Dave Rolsky committed Feb 12, 2009
Commits on Nov 9, 2008
Commits on Nov 8, 2008
  1. Bump version

    autarch committed Nov 8, 2008
    Minimum required Perl is now 5.8.1
  2. add release date

    autarch committed Nov 8, 2008
  3. Add RaiseError so that problems cause errors from DBI as opposed to

    autarch committed Nov 8, 2008
    just blowing up randomly.
  4. Formatting tweak

    autarch committed Nov 8, 2008
  5. Update changs with latest fix

    autarch committed Nov 8, 2008
  6. Add a plan

    autarch committed Nov 8, 2008
  7. Replace bizarre use of cmp_ok() with is(), which does the same thing

    autarch committed Nov 8, 2008
    and is easier to read.
Commits on Jun 12, 2008
  1. Bump version #

    autarch committed Jun 12, 2008
  2. Update changes for 1.37 release

    autarch committed Jun 12, 2008
  3. shut up warnings about sessions with states left in tests - this is j…

    autarch committed Jun 12, 2008
    …ust confusing noise for people installing the module
  4. Ignore & remove generated files.

    autarch committed Jun 12, 2008
    Add a .shipit file.