mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fx for bug#7221: information_schema: errors in "key_column_usage"
This commit is contained in:
@@ -11,9 +11,9 @@ NULL test t2_ibfk_1 test t2 FOREIGN KEY
|
||||
NULL test t2_ibfk_2 test t2 FOREIGN KEY
|
||||
select * from information_schema.KEY_COLUMN_USAGE where
|
||||
TABLE_SCHEMA= "test";
|
||||
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME
|
||||
NULL test PRIMARY NULL test t1 id 1 NULL NULL NULL NULL
|
||||
NULL test PRIMARY NULL test t2 id 1 NULL NULL NULL NULL
|
||||
NULL test t2_ibfk_1 NULL test t2 t1_id 1 1 test t1 id
|
||||
NULL test t2_ibfk_2 NULL test t2 t1_id 1 1 test t1 id
|
||||
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT
|
||||
NULL test PRIMARY NULL test t1 id 1 NULL
|
||||
NULL test PRIMARY NULL test t2 id 1 NULL
|
||||
NULL test t2_ibfk_1 NULL test t2 t1_id 1 1
|
||||
NULL test t2_ibfk_2 NULL test t2 t1_id 1 1
|
||||
drop table t2, t1;
|
||||
|
Reference in New Issue
Block a user