plugin: only `ComQuery` will print STARTING event for audit plugin
Open
affects-6.5
affects-7.1
affects-7.5
affects-8.1
affects-8.5
severity/moderate
sig/sql-infra
type/bug
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
1. Use `PREPARE/EXECUTE` to run a statement.
2. Check the audit log, it'll only have `COMPLETED` log, but not have `STARTING` event.
### 2. What did you expect to see? (Required)
It has both `COMPLETED` and `STARTING` event.
### 3. What did you see instead (Required)
It has no `STARTING` event.
### 4. What is your TiDB version? (Required)
Contributor guide
Assessment
This issue has not been assessed yet.