pingcap / pingcap/tidb

SPM: column Original_sql display format is not good enough

Open
#45,736 1 comment 0 reactions 1 assignee Claimed by @hawkingrei View on GitHub
affects-7.1 component/spm report/community severity/minor sig/planner 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)

reference https://asktug.com/t/topic/1008633,
when we input `show global bindings`, column Original_sql display format is not good, and not similar with bind_sql, so that we can copy directly.

### 2. What did you expect to see? (Required)
```
select count(?) from `test`.`t`
```

### 3. What did you see instead (Required)

```
select count ( ? ) from `test` . `t`
```

### 4. What is your TiDB version? (Required)

7.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.