pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://tidbcloud.com/free-trial
https://pingcap.com
Apache License 2.0
36.27k stars 5.72k forks source link

duplicate error message for ADD UNIQUE INDEX has wrong format #53004

Open lance6716 opened 2 weeks ago

lance6716 commented 2 weeks ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

When follow the manual test steps of https://github.com/pingcap/tidb/pull/52993

2. What did you expect to see? (Required)

ERROR 1062 (23000) at line 1: Duplicate entry '1' for key 't.idx'

3. What did you see instead (Required)

ERROR 1062 (23000) at line 1: Duplicate entry '[1]' for key 't.idx'

4. What is your TiDB version? (Required)

lance6716 commented 2 weeks ago

/assign @lyzx2001