Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HGETALL results within pipeline() and within multi() are different #226

Closed
ionian-wind opened this issue Jan 13, 2016 · 1 comment
Closed

Comments

@ionian-wind
Copy link

It seems that the built-in reply transformer for HGETALL command isn't working for transaction response

Example code:

redis.hset('test-hash', 'key', 'value').then(function () {
    redis.multi()
        .hgetall('test-hash')
        .exec().then(function (res) {
            console.log('multi', res);
        });
    redis.pipeline()
        .hgetall('test-hash')
        .exec().then(function (res) {
            console.log('pipeline', res);
        });
});

Output:

pipeline [ [ null, { key: 'value' } ] ]
multi [ [ null, [ 'key', 'value' ] ] ]

ioredis version is 1.14.0

Upd:
Ooops, my bad
Already submitted in #158

@luin
Copy link
Collaborator

luin commented Jan 13, 2016

duplicate of #158. Will be fixed in the next major version 🚀

@luin luin closed this as completed Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants