fix(cli): drop PENDING as a parameter for message queue commands (#20367)

This commit is contained in:
ciel
2026-09-30 09:42:59 +08:00
committed by GitHub
parent 8ffecc8d92
commit fc578eabf8
2 changed files with 2 additions and 8 deletions
+1 -5
View File
@@ -574,13 +574,9 @@ Lists messages currently retained in the task stream. The optional `PENDING` key
**Syntax**
```sql
MQ LIST [PENDING];
MQ LIST;
```
| Parameter | Required | Description |
| --- | --- | --- |
| `[PENDING]` | No | Requests the pending-message form of the command. |
**Example**
```text
+1 -3
View File
@@ -2690,11 +2690,9 @@ func (p *Parser) parseMessageQueueCommand() (*Command, error) {
cmd = NewCommand("user_list_message_queue_command")
if p.curToken.Type == TokenPending {
cmd.Params["pending"] = true
p.nextToken() // consume PENDING
} else {
cmd.Params["pending"] = false
}
case TokenPublish:
p.nextToken() // consume PUBLISH