Commit 7fdd1fe
committed
fix(string): propagate WRONGTYPE error for conditional SET operations
- Return WRONGTYPE when IFEQ/IFNE/IFDEQ/IFDNE is used on non-string keys
- Treat NX with wrong type as "key exists" so the condition is not met
- Keep other behaviors unchanged1 parent 6278634 commit 7fdd1fe
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
252 | 267 | | |
253 | 268 | | |
254 | 269 | | |
| |||
0 commit comments