Commits on Oct 22, 2012
  1. Revision 1.45

    committed Oct 22, 2012
  2. Revision 1.44

    committed Oct 22, 2012
Commits on Oct 10, 2012
  1. Merge pull request #2 from chiselwright/master

    ginesr committed Oct 10, 2012
Commits on Sep 27, 2012
  1. Add execute_array() method to DBD::Mock::st

    This is an early prototype that no longer dies when we call execute_array() on
    a mocked $dbh - but the testing doesn't yet have very high coverage to prove
    that it behaves as expected.
    chiselwright committed Sep 27, 2012
  2. Add bind_param_array() method

    This seems to behave the same as bind_param() in our mocked world, so we just
    pass the call on.
    chiselwright committed Sep 27, 2012
  3. git: ignore vi* swap files

    chiselwright committed Sep 27, 2012
  4. Add failing test for execute_array()

    This is something we've tried using, and hence mocking in tests at $work
    This script fails with the same error we're seeing, so is a good starting
    point for adding the functionality:
        $ prove -lv t/030_st_execute_array.t
        t/030_st_execute_array.t ..
        ok 1 - use DBD::Mock;
        ok 2 - use DBI;
        DBD::Mock::st execute_array failed: 3 bind values supplied but 0 expected at t/030_st_execute_array.t line 28.
        not ok 3 - Called execute_array() ok
        #   Failed test 'Called execute_array() ok'
        #   at t/030_st_execute_array.t line 30.
        # Looks like you failed 1 test of 3.
        Dubious, test returned 1 (wstat 256, 0x100)
        Failed 1/3 subtests
    chiselwright committed Sep 27, 2012
  5. Add git-repo url to meta-data

    This saves people hunting around github on the offchange that there's a
    git-repo of the project. Now it's in the meta data and should be a lot easier
    for people to find.
    chiselwright committed Sep 27, 2012
Commits on Nov 4, 2011
Commits on Aug 29, 2011
  1. Some touches to POD

    committed Aug 29, 2011
  2. Tidy t/027

    committed Aug 29, 2011
Commits on Aug 28, 2011
Commits on Aug 23, 2011
  1. remove extra files

    committed Aug 23, 2011
Commits on Aug 7, 2011
Commits on Jul 2, 2011
Commits on Jul 1, 2011
  1. Partial fix of rt66815

    committed Jul 1, 2011
  2. A test showing DBD::Mock::Session->verify_bound_params doesn't check …

    …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/ line 635."
    wu-lee committed with Mar 30, 2011
  3. Fix bug RT#66815 - check statement handles are valid before using them

    $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.
    wu-lee committed with Mar 25, 2011
  4. A test showing DBD::Mock->begin_work, commit and rollback don't detec…

    …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/ line
    635", masking the real reason.
    wu-lee committed with Mar 30, 2011
Commits on Jun 22, 2011
  1. Version 1.41

    committed Jun 22, 2011
  2. Revision 1.40

    committed Jun 22, 2011
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