Skip to content
Commits on Oct 22, 2012
  1. Revision 1.45

    committed
  2. Revision 1.44

    committed
Commits on Oct 10, 2012
  1. @ginesr

    Merge pull request #2 from chiselwright/master

    ginesr committed
    execute_array()
Commits on Sep 27, 2012
  1. @chiselwright

    Add execute_array() method to DBD::Mock::st

    chiselwright committed
    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.
  2. @chiselwright

    Add bind_param_array() method

    chiselwright committed
    This seems to behave the same as bind_param() in our mocked world, so we just
    pass the call on.
  3. @chiselwright
  4. @chiselwright
  5. @chiselwright

    git: ignore vi* swap files

    chiselwright committed
  6. @chiselwright

    Add failing test for execute_array()

    chiselwright committed
    This is something we've tried using, and hence mocking in tests at $work
    recently.
    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.
        1..3
        # Looks like you failed 1 test of 3.
        Dubious, test returned 1 (wstat 256, 0x100)
        Failed 1/3 subtests
  7. @chiselwright

    Add git-repo url to meta-data

    chiselwright committed
    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.
Commits on Nov 4, 2011
Commits on Aug 29, 2011
  1. Some touches to POD

    committed
  2. Tidy t/027

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

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

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

    wu-lee committed with
    …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. Fix bug RT#66815 - check statement handles are valid before using them

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

    wu-lee committed with
    …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, 2011
  1. Version 1.41

    committed
  2. Revision 1.40

    committed
Commits on Jun 22, 2009
  1. @autarch

    Fix typo

    autarch committed
  2. @autarch

    Added RT ticket

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

    Dave Rolsky committed
Something went wrong with that request. Please try again.