diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-03-12 13:06:55 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-03-12 13:06:55 -0800 |
commit | ad388393f7e3967ff1a69001308cdbcf98306127 (patch) | |
tree | 85a0c87c3e6433c4aeed3b02f88e25d31566293b /redis/client.py | |
parent | 56f0ffb88b716287606e08f8ffd77e5f586a9b44 (diff) | |
download | redis-py-ad388393f7e3967ff1a69001308cdbcf98306127.tar.gz |
Fixed a bug with pipeline execution of AUTH and SELECT commands. These failed after MULTI and EXEC were added, since you can't run MULTI until you've auth'd, and it doesn't make sense to run SELECT within a multi/exec.
Thanks Pat Shields for the bug report
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 211c0cd..6854803 100644 --- a/redis/client.py +++ b/redis/client.py @@ -954,8 +954,8 @@ class Pipeline(Redis): # _setup_connection(). run these commands immediately without # buffering them. if command_name in ('AUTH', 'SELECT'): - response = self._execute([(command_name, command, options)]) - return response[0] + return super(Pipeline, self).execute_command( + command_name, command, **options) else: self.command_stack.append((command_name, command, options)) return self |