Bug #100617 | "left join" make a bug in information_schema.TABLE_CONSTRAINTS&KEY_COLUMN_USAGE | ||
---|---|---|---|
Submitted: | 24 Aug 2020 8:45 | Modified: | 25 Aug 2020 12:21 |
Reporter: | 庆杰 胡 | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Information schema | Severity: | S4 (Feature request) |
Version: | mysql 8.0.21 | OS: | Windows (window 10 x64 professional) |
Assigned to: | CPU Architecture: | x86 | |
Tags: | left join |
[24 Aug 2020 8:45]
庆杰 胡
[24 Aug 2020 12:47]
MySQL Verification Team
Hi Mr. james, Thank you for your bug report. However, I am totally unable to repeat the problem that you are reporting. This is what I get in my result set: --------------------------- TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE CONSTRAINT_NAME COLUMN_NAME TABLE_SCHEMA TABLE_NAME COLUMN_NAME CONSTRAINT_NAME test book PRIMARY KEY PRIMARY id test book id PRIMARY test book PRIMARY KEY PRIMARY name test book name PRIMARY test class PRIMARY KEY PRIMARY id test class id PRIMARY test class PRIMARY KEY PRIMARY name test class name PRIMARY test student FOREIGN KEY FK_student_class NULL NULL NULL NULL NULL test student PRIMARY KEY PRIMARY id test student id PRIMARY test student PRIMARY KEY PRIMARY name test student name PRIMARY test student UNIQUE sno NULL NULL NULL NULL NULL test student CHECK student_chk_1 NULL NULL NULL NULL NULL test student_book CHECK CK_student_book NULL NULL NULL NULL NULL test student_book UNIQUE UQ_student_book NULL NULL NULL NULL NULL --------------------------- Hence, nothing is scrambled. I used 8.0.21 server and 8.0.21 mysql CLI. If you are using some GUI client, then you should report it as client bug and not server bug. Can't repeat .........
[25 Aug 2020 0:53]
庆杰 胡
First,I get the same output as you. But I wonder why there are these two lines of data: *********************************************** TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE CONSTRAINT_NAME COLUMN_NAME TABLE_SCHEMA TABLE_NAME COLUMN_NAME CONSTRAINT_NAME test class PRIMARY KEY PRIMARY name test class name PRIMARY test student PRIMARY KEY PRIMARY name test student name PRIMARY ****************************************************** I didn't set column("name") as the primary key for the class and student tables!
[25 Aug 2020 12:11]
MySQL Verification Team
Hi Mr. james, This is because CHECK() constraint effectively is presented in that fashion, because of the manner in which it was implemented.
[25 Aug 2020 12:21]
MySQL Verification Team
Hi Mr. james, On second thought, such a display could confuse many users. This is still not a bug, but it makes a good feature request. Verified as a feature request.