Permalink
Commits on Oct 22, 2012
  1. Revision 1.45

    bluescreen10 committed Oct 22, 2012
  2. Revision 1.44

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

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

    chiselwright committed Sep 27, 2012
    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. Add bind_param_array() method

    chiselwright committed Sep 27, 2012
    This seems to behave the same as bind_param() in our mocked world, so we just
    pass the call on.
  3. Add failing test for execute_array()

    chiselwright committed Sep 27, 2012
    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
  4. Add git-repo url to meta-data

    chiselwright committed Sep 27, 2012
    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

    bluescreen10 committed Aug 29, 2011
  2. Tidy t/027

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

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

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

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

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

    wu-lee authored and bluescreen10 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, 2011
  1. Version 1.41

    bluescreen10 committed Jun 22, 2011
  2. Revision 1.40

    bluescreen10 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
    Dave Rolsky committed Feb 12, 2009