• antirez's avatar
    redis-cli: check SELECT reply type just in state updated. · ef6a4df2
    antirez authored
    In issues #3361 / #3365 a problem was reported / fixed with redis-cli
    not updating correctly the current DB on error after SELECT.
    
    In theory this bug was fixed in 0042fb0e, but actually the commit only
    fixed the prompt updating, not the fact the state was set in a wrong
    way.
    
    This commit removes the check in the prompt update, now that hopefully
    it is the state that is correct, there is no longer need for this check.
    ef6a4df2
redis-cli.c 87.9 KB