Issue 600 in redis: HDEL command does not take more than one field

358 views
Skip to first unread message

re...@googlecode.com

unread,
Jun 30, 2011, 2:06:49 PM6/30/11
to redi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 600 by jeff.k...@gmail.com: HDEL command does not take more than
one field
http://code.google.com/p/redis/issues/detail?id=600

What version of Redis you are using, in what kind of Operating System?
2.2.11 on Linux OpenSUSE 11.4

What is the problem you are experiencing?
HDEL failed with more than one field is specified

What steps will reproduce the problem?
redis 127.0.0.1:6379[1]> hset myhash field1 "value1"
(integer) 1
redis 127.0.0.1:6379[1]> hset myhash field2 "value2"
(integer) 1
redis 127.0.0.1:6379[1]> hdel myhash field1 field2
(error) ERR wrong number of arguments for 'hdel' command
redis 127.0.0.1:6379[1]>

Do you have an INFO output? Please past it here.

If it is a crash, can you please paste the stack trace that you can find in
the log file or on standard output? This is really useful for us!

Please provide any additional information below.


re...@googlecode.com

unread,
Jun 30, 2011, 2:10:54 PM6/30/11
to redi...@googlegroups.com

Comment #1 on issue 600 by jeff.k...@gmail.com: HDEL command does not take

Forgot to mention that the command page shows it is supported:

HDEL key field [field ...]

re...@googlecode.com

unread,
Jun 30, 2011, 5:56:43 PM6/30/11
to redi...@googlegroups.com
Updates:
Status: Invalid

Comment #2 on issue 600 by pcnoordh...@gmail.com: HDEL command does not

That page also mentions:
"For Redis versions 2.2 and below, this command is only available as a
non-variadic variant. To remove multiple fields from a hash in an atomic
fashion for those versions, use a MULTI/EXEC block."

We like to keep the docs up to date with the latest available features
instead of having separate docs per version (since that is a big
maintenance pain). Instead, we like to simply mention the history of a
command on the same page to make sure there is as little confusion as
possible.

Cheers,
Pieter

re...@googlecode.com

unread,
Jun 30, 2011, 8:02:24 PM6/30/11
to redi...@googlegroups.com

Comment #3 on issue 600 by jeff.k...@gmail.com: HDEL command does not take

Thanks for the response. I did not realize that extra disclaimer actually
includes the latest and greatest redis version (I thought it was 2.2.0).
Since there is no official 2.3.x, I think it seems odd to show that
confusing extra fields on the command help page. :)

Reply all
Reply to author
Forward
0 new messages