Changeset 49f983


Ignore:
Timestamp:
06/15/09 22:16:55 (3 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master
Children:
449d2b
Parents:
91213d
git-author:
Tomash Brechko <tomash.brechko@…> (06/15/09 12:43:07)
git-committer:
Tomash Brechko <tomash.brechko@…> (06/15/09 22:16:55)
Message:

Starting with memcached 1.3.3 incr/decr commands require a number.

Patch by Jason M. Mills (RT#46883).

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Changes

    r91213d r49f983  
    3737        Win32 (Cygwin, Mingw32).  Problem report (for Windows 2000 and 
    3838        below) and initial patch are by Yasuhiro Matsumoto. 
     39 
     40        Fix t/commands.t: starting with memcached 1.3.3 incr/decr 
     41        commands expect numeric value in the cache.  Patch by Jason 
     42        M. Mills (RT#46883). 
    3943 
    4044 
  • t/commands.t

    r007b2e r49f983  
    1010 
    1111if ($Memd::memd) { 
    12     plan tests => 66; 
     12    plan tests => 68; 
    1313} else { 
    1414    plan skip_all => 'Not connected'; 
     
    3030is($Memd::memd->get($key), 'v3', 'Fetch'); 
    3131 
     32ok($Memd::memd->replace($key, 0), 'replace with numeric'); 
    3233ok($Memd::memd->incr($key), 'Incr'); 
    3334ok($Memd::memd->get($key) == 1, 'Fetch'); 
     
    133134} 
    134135 
     136ok($Memd::memd->replace_multi(map { [$_,0] } @keys),'replace_multi to reset to numeric'); 
    135137$res = $Memd::memd->incr_multi([$keys[0], 2], [$keys[1]], @keys[2..$#keys]); 
    136138ok(values %$res == @keys); 
Note: See TracChangeset for help on using the changeset viewer.