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

set command can overwrite data structure of hash #91

Open
han-ian opened this issue Oct 17, 2022 · 1 comment
Open

set command can overwrite data structure of hash #91

han-ian opened this issue Oct 17, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@han-ian
Copy link

han-ian commented Oct 17, 2022

May be this is a bug.

How to reporduce the test:
image

Diving into the code, can see that string and hash meta key has the same key format.
For the set command, may be it need to check if there is a existing key ?
image
image

@han-ian han-ian changed the title set command can overwrite hash structure set command can overwrite data structure of hash Oct 17, 2022
@han-ian
Copy link
Author

han-ian commented Oct 17, 2022

If this is a bug, I guess the sub_key may be out of control because the meta_key is lost.

@yongman yongman added the bug Something isn't working label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants