config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/sysschema/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : /home/usr.opt/mysql57/mysql-test/suite/sysschema/t/v_schema_redundant_indexes.test

-- source include/not_embedded.inc
-- source ../include/ps_truncate_all_tables.inc
# Tests for sys schema
# Verify the sys.schema_redundant_indexes / x$schema_flattened_keys views

# Ensure structure changes don't slip in
DESC sys.schema_redundant_indexes;

# Make sure view select does not error, but ignore results
--disable_result_log
SELECT * FROM sys.schema_redundant_indexes;
--enable_result_log


# Ensure structure changes don't slip in
DESC sys.x$schema_flattened_keys;

# Make sure view select does not error, but ignore results
--disable_result_log
SELECT * FROM sys.x$schema_flattened_keys;
--enable_result_log

# Test correctly identifies keys

CREATE DATABASE rkey;

CREATE TABLE rkey.rkey (
  i INT,
  j INT,
  k INT,
  PRIMARY KEY (i),
  KEY (j),
  KEY (j, k),
  KEY (i, j, k)
 );

 SELECT * FROM sys.schema_redundant_indexes;

 DROP DATABASE rkey;

Man Man