Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Oct 22, 2012
  1. Revision 1.45

    authored
  2. Revision 1.44

    authored
Commits on Oct 10, 2012
  1. @ginesr

    Merge pull request #2 from chiselwright/master

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

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

    chiselwright authored
    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 authored
    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
  6. @chiselwright

    Add failing test for execute_array()

    chiselwright authored
    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 authored
    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

    authored
  2. Tidy t/027

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

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

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

    wu-lee authored committed
    …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 committed
    $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 committed
    …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

    authored
  2. Revision 1.40

    authored
Commits on Jun 22, 2009
  1. @autarch

    Fix typo

    autarch authored
  2. @autarch

    Added RT ticket

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

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