mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Merge ramayana.hindu.god:/home/tsmith/m/bk/50
into ramayana.hindu.god:/home/tsmith/m/bk/maint/50 configure.in: Auto merged scripts/mysql_config.sh: Auto merged libmysql/libmysql.c: Manual merge
This commit is contained in:
commit
ba0cd51eb1
19 changed files with 558 additions and 839 deletions
|
@ -7,7 +7,7 @@ AC_INIT(sql/mysqld.cc)
|
|||
AC_CANONICAL_SYSTEM
|
||||
# The Docs Makefile.am parses this line!
|
||||
# remember to also change ndb version below and update version.c in ndb
|
||||
AM_INIT_AUTOMAKE(mysql, 5.0.50)
|
||||
AM_INIT_AUTOMAKE(mysql, 5.0.52)
|
||||
AM_CONFIG_HEADER([include/config.h:config.h.in])
|
||||
|
||||
PROTOCOL_VERSION=10
|
||||
|
@ -23,7 +23,7 @@ NDB_SHARED_LIB_VERSION=$NDB_SHARED_LIB_MAJOR_VERSION:0:0
|
|||
# ndb version
|
||||
NDB_VERSION_MAJOR=5
|
||||
NDB_VERSION_MINOR=0
|
||||
NDB_VERSION_BUILD=50
|
||||
NDB_VERSION_BUILD=52
|
||||
NDB_VERSION_STATUS=""
|
||||
|
||||
# Set all version vars based on $VERSION. How do we do this more elegant ?
|
||||
|
|
|
@ -4699,7 +4699,7 @@ int cli_read_binary_rows(MYSQL_STMT *stmt)
|
|||
if (!mysql)
|
||||
{
|
||||
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);
|
||||
return 1;
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
||||
net = &mysql->net;
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
#
|
||||
--require r/have_bug25714.require
|
||||
disable_query_log;
|
||||
eval select LENGTH("MYSQL_BUG25714") > 0 as "have_bug25714_exe";
|
||||
eval select LENGTH("$MYSQL_BUG25714") > 0 as "have_bug25714_exe";
|
||||
enable_query_log;
|
||||
|
|
|
@ -110,3 +110,25 @@ Carsten 16.09.2005
|
|||
4. Fixed datadict_<engine>.result files after the change that added 2 columns to
|
||||
the VIEWS table (DEFINER varchar(77), SECURITY_TYPE varchar(7)).
|
||||
===================================================================
|
||||
Matthias 25.08.2007
|
||||
-------------------
|
||||
Fixes for Bugs 30418,30420,30438,30440
|
||||
1. Replace error numbers with error names
|
||||
2. Replace static "InnoDB" (not all time available) used within an
|
||||
"alter table" by $OTHER_ENGINE_TYPE (set to MEMORY or MyISAM).
|
||||
Minor adjustment of column data type.
|
||||
3. Use mysqltest result set sorting in several cases.
|
||||
4. Avoid any statistics about help tables, because their content
|
||||
depends on configuration:
|
||||
developer release - help tables are empty
|
||||
build release - help tables have content + growing with version
|
||||
5. Add two help table related tests (one for build, one for developer)
|
||||
to ensure that informations about help tables within
|
||||
INFORMATION_SCHEMA.TABLES/STATISTICS are checked.
|
||||
General note:
|
||||
Most INFORMATION_SCHEMA properties (table layout, permissions etc.)
|
||||
are not affected by our variation of the storage engines except
|
||||
that some properties of our tables using a specific storage
|
||||
engine become visible. So it makes sense to decompose
|
||||
this test into a storage engine specific part and a non
|
||||
storage engine specific part in future.
|
||||
|
|
File diff suppressed because it is too large
Load diff
22
mysql-test/suite/funcs_1/r/datadict_help_tables_build.result
Normal file
22
mysql-test/suite/funcs_1/r/datadict_help_tables_build.result
Normal file
|
@ -0,0 +1,22 @@
|
|||
DELETE FROM mysql.help_category LIMIT <number>;
|
||||
DELETE FROM mysql.help_keyword LIMIT <number>;
|
||||
DELETE FROM mysql.help_relation LIMIT <number>;
|
||||
DELETE FROM mysql.help_topic LIMIT <number>;
|
||||
SELECT * FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT
|
||||
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 30 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help categories
|
||||
NULL mysql help_keyword BASE TABLE MyISAM 10 Fixed 320 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help keywords
|
||||
NULL mysql help_relation BASE TABLE MyISAM 10 Fixed 640 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL keyword-topic relation
|
||||
NULL mysql help_topic BASE TABLE MyISAM 10 Dynamic 380 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help topics
|
||||
SELECT * FROM INFORMATION_SCHEMA.STATISTICS
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 30 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 30 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 320 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 320 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 640 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 380 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 380 NULL NULL BTREE
|
18
mysql-test/suite/funcs_1/r/datadict_help_tables_dev.result
Normal file
18
mysql-test/suite/funcs_1/r/datadict_help_tables_dev.result
Normal file
|
@ -0,0 +1,18 @@
|
|||
SELECT * FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT
|
||||
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help categories
|
||||
NULL mysql help_keyword BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help keywords
|
||||
NULL mysql help_relation BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL keyword-topic relation
|
||||
NULL mysql help_topic BASE TABLE MyISAM 10 Dynamic 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help topics
|
||||
SELECT * FROM INFORMATION_SCHEMA.STATISTICS
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 0 NULL NULL BTREE
|
|
@ -10,8 +10,9 @@
|
|||
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
||||
. values of the number of rows of tables.
|
||||
.
|
||||
. This .result file has been checked OK with Linux 5.0.23-bk,
|
||||
. ChangeSet@1.2211, 2006-06-28 10:11:43-07:00.
|
||||
. This .result file has been checked OK with Linux 5.0.48,
|
||||
. build tree ChangeSet@1.2477.6.3, 2007-07-30
|
||||
. except that the not fixed Bug#30020 causes a difference.
|
||||
.
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -793,7 +794,8 @@ CHECKSUM NULL
|
|||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT
|
||||
SELECT * FROM tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema')
|
||||
AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA db_datadict
|
||||
TABLE_NAME v1
|
||||
|
@ -922,90 +924,6 @@ CREATE_OPTIONS
|
|||
TABLE_COMMENT User defined functions
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help categories
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_keyword
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help keywords
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_relation
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT keyword-topic relation
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_topic
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help topics
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME host
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
|
@ -2539,7 +2457,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||
select sum(id) from collations;
|
||||
sum(id)
|
||||
10741
|
||||
10995
|
||||
select collation_name, character_set_name into @x,@y
|
||||
from collation_character_set_applicability limit 1;
|
||||
select @x, @y;
|
||||
|
@ -2553,7 +2471,8 @@ END NULL NULL SQL NO CONTAINS SQL NULL DEFINER YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh
|
|||
select count(*) from routines;
|
||||
count(*)
|
||||
1
|
||||
select * from statistics;
|
||||
select * from statistics
|
||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
||||
|
@ -2565,14 +2484,6 @@ NULL mysql db 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
|||
NULL mysql db 0 mysql PRIMARY 3 User A 2 NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||
NULL mysql proc 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||
|
@ -2781,7 +2692,8 @@ NULL mysql PRIMARY NULL mysql user User 2 NULL NULL NULL NULL
|
|||
select count(*) as max_recs from key_column_usage;
|
||||
max_recs
|
||||
40
|
||||
select max(cardinality) from statistics;
|
||||
select max(cardinality) from statistics
|
||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
||||
max(cardinality)
|
||||
393
|
||||
select concat("View '",
|
||||
|
@ -3408,7 +3320,8 @@ CHECKSUM NULL
|
|||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT
|
||||
SELECT * FROM information_schema.tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema')
|
||||
AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA db_datadict
|
||||
TABLE_NAME v1
|
||||
|
@ -3537,90 +3450,6 @@ CREATE_OPTIONS
|
|||
TABLE_COMMENT User defined functions
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help categories
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_keyword
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help keywords
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_relation
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT keyword-topic relation
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_topic
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help topics
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME host
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
|
@ -4552,10 +4381,10 @@ COUNT(*)
|
|||
36
|
||||
SELECT COUNT(*) FROM information_schema. collations ;
|
||||
COUNT(*)
|
||||
126
|
||||
127
|
||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||
COUNT(*)
|
||||
126
|
||||
127
|
||||
SELECT COUNT(*) FROM information_schema. routines ;
|
||||
COUNT(*)
|
||||
1
|
||||
|
@ -4631,10 +4460,10 @@ utf8_esperanto_ci utf8
|
|||
utf8_estonian_ci utf8
|
||||
select routine_definition from routines;
|
||||
routine_definition
|
||||
select * from statistics group by index_name asc limit 0, 5;
|
||||
select * from statistics where table_name not like 'help_%'
|
||||
group by index_name asc limit 0, 5;
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql procs_priv 1 mysql Grantor 1 Grantor A NULL NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
||||
|
@ -4731,9 +4560,9 @@ NULL test latin1 latin1_swedish_ci NULL
|
|||
NULL test1 latin1 latin1_swedish_ci NULL
|
||||
select distinct grantee from user_privileges;
|
||||
grantee
|
||||
'root'@'localhost'
|
||||
'root'@'<SERVER_NAME>'
|
||||
'root'@'127.0.0.1'
|
||||
'root'@'<SERVER_NAME>'
|
||||
'root'@'localhost'
|
||||
select all grantee from user_privileges order by grantee, privilege_type;
|
||||
grantee
|
||||
'root'@'127.0.0.1'
|
||||
|
@ -6659,7 +6488,7 @@ Testcase 3.2.1.14:
|
|||
DROP DATABASE IF EXISTS db_datadict;
|
||||
CREATE DATABASE db_datadict;
|
||||
USE db_datadict;
|
||||
create table res_t_401014(f1 char(10), f2 text(25), f3 int);
|
||||
create table res_t_401014(f1 char(10), f2 varchar(25), f3 int);
|
||||
create view res_v_401014 as select * from res_t_401014;
|
||||
create procedure sp_6_401014() select 'db_datadict';
|
||||
create function fn_6_401014() returns int return 0;
|
||||
|
@ -6682,10 +6511,10 @@ from information_schema.columns
|
|||
where table_schema like 'db_datadict%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
NULL db_datadict res_t_401014 f1 1 NULL YES char 10 10 NULL NULL latin1 latin1_swedish_ci char(10) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f1 1 NULL YES char 10 10 NULL NULL latin1 latin1_swedish_ci char(10) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
select table_schema, table_name, is_updatable
|
||||
from information_schema.views
|
||||
|
@ -6798,7 +6627,7 @@ WHERE trigger_schema LIKE 'db_datadict%';
|
|||
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER
|
||||
use db_datadict;
|
||||
alter table res_t_401014 change f1 ff1 int;
|
||||
alter table res_t_401014 engine = innodb;
|
||||
alter table res_t_401014 engine = MEMORY;
|
||||
alter table res_t_401014 change f3 f3_new bigint;
|
||||
alter view res_v_401014 as select ff1 from res_t_401014;
|
||||
alter procedure sp_6_401014 sql security invoker;
|
||||
|
@ -6816,14 +6645,14 @@ select table_catalog, table_schema, engine
|
|||
from information_schema.tables
|
||||
where table_schema like 'db_datadict%';
|
||||
table_catalog table_schema engine
|
||||
NULL db_datadict InnoDB
|
||||
NULL db_datadict MEMORY
|
||||
NULL db_datadict NULL
|
||||
select *
|
||||
from information_schema.columns
|
||||
where table_schema like 'db_datadict%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
NULL db_datadict res_t_401014 ff1 1 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f3_new 3 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(20) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 ff1 1 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
select table_schema, table_name, is_updatable
|
||||
|
@ -7411,6 +7240,7 @@ utf8_roman_ci utf8
|
|||
utf8_persian_ci utf8
|
||||
utf8_esperanto_ci utf8
|
||||
utf8_hungarian_ci utf8
|
||||
utf8_general_cs utf8
|
||||
ucs2_general_ci ucs2
|
||||
ucs2_bin ucs2
|
||||
ucs2_unicode_ci ucs2
|
||||
|
@ -8042,6 +7872,7 @@ utf8_roman_ci
|
|||
utf8_persian_ci
|
||||
utf8_esperanto_ci
|
||||
utf8_hungarian_ci
|
||||
utf8_general_cs
|
||||
ucs2_general_ci
|
||||
ucs2_bin
|
||||
ucs2_unicode_ci
|
||||
|
@ -8406,6 +8237,7 @@ utf8_roman_ci utf8 207 Yes 8
|
|||
utf8_persian_ci utf8 208 Yes 8
|
||||
utf8_esperanto_ci utf8 209 Yes 8
|
||||
utf8_hungarian_ci utf8 210 Yes 8
|
||||
utf8_general_cs utf8 254 Yes 1
|
||||
ucs2_general_ci ucs2 35 Yes Yes 1
|
||||
ucs2_bin ucs2 90 Yes 1
|
||||
ucs2_unicode_ci ucs2 128 Yes 8
|
||||
|
@ -8567,6 +8399,7 @@ utf8_roman_ci utf8
|
|||
utf8_persian_ci utf8
|
||||
utf8_esperanto_ci utf8
|
||||
utf8_hungarian_ci utf8
|
||||
utf8_general_cs utf8
|
||||
ucs2_general_ci ucs2
|
||||
ucs2_bin ucs2
|
||||
ucs2_unicode_ci ucs2
|
||||
|
@ -12140,7 +11973,7 @@ NULL information_schema TRIGGERS SYSTEM VIEW MyISAM 0 Dynamic NULL #ARL# #DL# #M
|
|||
NULL information_schema USER_PRIVILEGES SYSTEM VIEW MEMORY 0 Fixed NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL #CO#
|
||||
NULL information_schema VIEWS SYSTEM VIEW MyISAM 0 Dynamic NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL #CO#
|
||||
SELECT * FROM information_schema.tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema') AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT
|
||||
NULL db_datadict tb1 BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss latin1_swedish_ci NULL
|
||||
NULL db_datadict tb2 BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss latin1_swedish_ci NULL
|
||||
|
@ -12149,10 +11982,6 @@ NULL db_datadict v3 VIEW NULL NULL NULL NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYY
|
|||
NULL mysql columns_priv BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Column privileges
|
||||
NULL mysql db BASE TABLE MyISAM 10 Fixed 3 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Database privileges
|
||||
NULL mysql func BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL User defined functions
|
||||
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help categories
|
||||
NULL mysql help_keyword BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help keywords
|
||||
NULL mysql help_relation BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL keyword-topic relation
|
||||
NULL mysql help_topic BASE TABLE MyISAM 10 Dynamic 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help topics
|
||||
NULL mysql host BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Host privileges; Merged with database privileges
|
||||
NULL mysql proc BASE TABLE MyISAM 10 Dynamic 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL Stored Procedures
|
||||
NULL mysql procs_priv BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Procedure privileges
|
||||
|
@ -12371,7 +12200,8 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_
|
|||
|
||||
root@localhost db_datadict_2
|
||||
REVOKE SELECT ON db_datadict.tb_6_401402_1 FROM 'user_1'@'localhost';
|
||||
SELECT * FROM information_schema.statistics;
|
||||
SELECT * FROM information_schema.statistics
|
||||
WHERE NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL db_datadict tb_6_401402_1 0 db_datadict PRIMARY 1 f1 A 0 NULL NULL BTREE
|
||||
NULL db_datadict tb_6_401402_1 1 db_datadict f2_ind 1 f2 A NULL NULL NULL YES BTREE
|
||||
|
@ -12391,14 +12221,6 @@ NULL mysql db 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
|||
NULL mysql db 0 mysql PRIMARY 3 User A 2 NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||
NULL mysql proc 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
||||
. values of the number of rows of tables.
|
||||
.
|
||||
. This .result file has been checked OK with Linux 5.0.23-bk,
|
||||
. ChangeSet@1.2211, 2006-06-28 10:11:43-07:00.
|
||||
. This .result file has been checked OK with Linux 5.0.48,
|
||||
. build tree ChangeSet@1.2477.6.3, 2007-07-30
|
||||
. except that the not fixed Bug#30020 causes a difference.
|
||||
.
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -791,7 +792,8 @@ CHECKSUM NULL
|
|||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT
|
||||
SELECT * FROM tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema')
|
||||
AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA db_datadict
|
||||
TABLE_NAME v1
|
||||
|
@ -920,90 +922,6 @@ CREATE_OPTIONS
|
|||
TABLE_COMMENT User defined functions
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help categories
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_keyword
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help keywords
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_relation
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT keyword-topic relation
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_topic
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help topics
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME host
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
|
@ -2522,7 +2440,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||
select sum(id) from collations;
|
||||
sum(id)
|
||||
10741
|
||||
10995
|
||||
select collation_name, character_set_name into @x,@y
|
||||
from collation_character_set_applicability limit 1;
|
||||
select @x, @y;
|
||||
|
@ -2536,7 +2454,8 @@ END NULL NULL SQL NO CONTAINS SQL NULL DEFINER YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh
|
|||
select count(*) from routines;
|
||||
count(*)
|
||||
1
|
||||
select * from statistics;
|
||||
select * from statistics
|
||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
||||
|
@ -2548,14 +2467,6 @@ NULL mysql db 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
|||
NULL mysql db 0 mysql PRIMARY 3 User A 2 NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||
NULL mysql proc 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||
|
@ -2764,7 +2675,8 @@ NULL mysql PRIMARY NULL mysql user User 2 NULL NULL NULL NULL
|
|||
select count(*) as max_recs from key_column_usage;
|
||||
max_recs
|
||||
40
|
||||
select max(cardinality) from statistics;
|
||||
select max(cardinality) from statistics
|
||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
||||
max(cardinality)
|
||||
393
|
||||
select concat("View '",
|
||||
|
@ -3391,7 +3303,8 @@ CHECKSUM NULL
|
|||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT
|
||||
SELECT * FROM information_schema.tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema')
|
||||
AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA db_datadict
|
||||
TABLE_NAME v1
|
||||
|
@ -3520,90 +3433,6 @@ CREATE_OPTIONS
|
|||
TABLE_COMMENT User defined functions
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help categories
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_keyword
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help keywords
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_relation
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT keyword-topic relation
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_topic
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help topics
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME host
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
|
@ -4535,10 +4364,10 @@ COUNT(*)
|
|||
36
|
||||
SELECT COUNT(*) FROM information_schema. collations ;
|
||||
COUNT(*)
|
||||
126
|
||||
127
|
||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||
COUNT(*)
|
||||
126
|
||||
127
|
||||
SELECT COUNT(*) FROM information_schema. routines ;
|
||||
COUNT(*)
|
||||
1
|
||||
|
@ -4614,10 +4443,10 @@ utf8_esperanto_ci utf8
|
|||
utf8_estonian_ci utf8
|
||||
select routine_definition from routines;
|
||||
routine_definition
|
||||
select * from statistics group by index_name asc limit 0, 5;
|
||||
select * from statistics where table_name not like 'help_%'
|
||||
group by index_name asc limit 0, 5;
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql procs_priv 1 mysql Grantor 1 Grantor A NULL NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
||||
|
@ -4714,9 +4543,9 @@ NULL test latin1 latin1_swedish_ci NULL
|
|||
NULL test1 latin1 latin1_swedish_ci NULL
|
||||
select distinct grantee from user_privileges;
|
||||
grantee
|
||||
'root'@'localhost'
|
||||
'root'@'<SERVER_NAME>'
|
||||
'root'@'127.0.0.1'
|
||||
'root'@'<SERVER_NAME>'
|
||||
'root'@'localhost'
|
||||
select all grantee from user_privileges order by grantee, privilege_type;
|
||||
grantee
|
||||
'root'@'127.0.0.1'
|
||||
|
@ -6642,7 +6471,7 @@ Testcase 3.2.1.14:
|
|||
DROP DATABASE IF EXISTS db_datadict;
|
||||
CREATE DATABASE db_datadict;
|
||||
USE db_datadict;
|
||||
create table res_t_401014(f1 char(10), f2 text(25), f3 int);
|
||||
create table res_t_401014(f1 char(10), f2 varchar(25), f3 int);
|
||||
create view res_v_401014 as select * from res_t_401014;
|
||||
create procedure sp_6_401014() select 'db_datadict';
|
||||
create function fn_6_401014() returns int return 0;
|
||||
|
@ -6665,10 +6494,10 @@ from information_schema.columns
|
|||
where table_schema like 'db_datadict%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
NULL db_datadict res_t_401014 f1 1 NULL YES char 10 10 NULL NULL latin1 latin1_swedish_ci char(10) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f1 1 NULL YES char 10 10 NULL NULL latin1 latin1_swedish_ci char(10) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
select table_schema, table_name, is_updatable
|
||||
from information_schema.views
|
||||
|
@ -6781,7 +6610,7 @@ WHERE trigger_schema LIKE 'db_datadict%';
|
|||
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER
|
||||
use db_datadict;
|
||||
alter table res_t_401014 change f1 ff1 int;
|
||||
alter table res_t_401014 engine = innodb;
|
||||
alter table res_t_401014 engine = MyISAM;
|
||||
alter table res_t_401014 change f3 f3_new bigint;
|
||||
alter view res_v_401014 as select ff1 from res_t_401014;
|
||||
alter procedure sp_6_401014 sql security invoker;
|
||||
|
@ -6799,14 +6628,14 @@ select table_catalog, table_schema, engine
|
|||
from information_schema.tables
|
||||
where table_schema like 'db_datadict%';
|
||||
table_catalog table_schema engine
|
||||
NULL db_datadict InnoDB
|
||||
NULL db_datadict MyISAM
|
||||
NULL db_datadict NULL
|
||||
select *
|
||||
from information_schema.columns
|
||||
where table_schema like 'db_datadict%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
NULL db_datadict res_t_401014 ff1 1 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f3_new 3 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(20) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 ff1 1 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
select table_schema, table_name, is_updatable
|
||||
|
@ -7394,6 +7223,7 @@ utf8_roman_ci utf8
|
|||
utf8_persian_ci utf8
|
||||
utf8_esperanto_ci utf8
|
||||
utf8_hungarian_ci utf8
|
||||
utf8_general_cs utf8
|
||||
ucs2_general_ci ucs2
|
||||
ucs2_bin ucs2
|
||||
ucs2_unicode_ci ucs2
|
||||
|
@ -8010,6 +7840,7 @@ utf8_roman_ci
|
|||
utf8_persian_ci
|
||||
utf8_esperanto_ci
|
||||
utf8_hungarian_ci
|
||||
utf8_general_cs
|
||||
ucs2_general_ci
|
||||
ucs2_bin
|
||||
ucs2_unicode_ci
|
||||
|
@ -8374,6 +8205,7 @@ utf8_roman_ci utf8 207 Yes 8
|
|||
utf8_persian_ci utf8 208 Yes 8
|
||||
utf8_esperanto_ci utf8 209 Yes 8
|
||||
utf8_hungarian_ci utf8 210 Yes 8
|
||||
utf8_general_cs utf8 254 Yes 1
|
||||
ucs2_general_ci ucs2 35 Yes Yes 1
|
||||
ucs2_bin ucs2 90 Yes 1
|
||||
ucs2_unicode_ci ucs2 128 Yes 8
|
||||
|
@ -8535,6 +8367,7 @@ utf8_roman_ci utf8
|
|||
utf8_persian_ci utf8
|
||||
utf8_esperanto_ci utf8
|
||||
utf8_hungarian_ci utf8
|
||||
utf8_general_cs utf8
|
||||
ucs2_general_ci ucs2
|
||||
ucs2_bin ucs2
|
||||
ucs2_unicode_ci ucs2
|
||||
|
@ -12038,7 +11871,7 @@ NULL information_schema TRIGGERS SYSTEM VIEW MyISAM 0 Dynamic NULL #ARL# #DL# #M
|
|||
NULL information_schema USER_PRIVILEGES SYSTEM VIEW MEMORY 0 Fixed NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL #CO#
|
||||
NULL information_schema VIEWS SYSTEM VIEW MyISAM 0 Dynamic NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL #CO#
|
||||
SELECT * FROM information_schema.tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema') AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT
|
||||
NULL db_datadict tb1 BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss latin1_swedish_ci NULL
|
||||
NULL db_datadict tb2 BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss latin1_swedish_ci NULL
|
||||
|
@ -12047,10 +11880,6 @@ NULL db_datadict v3 VIEW NULL NULL NULL NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYY
|
|||
NULL mysql columns_priv BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Column privileges
|
||||
NULL mysql db BASE TABLE MyISAM 10 Fixed 3 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Database privileges
|
||||
NULL mysql func BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL User defined functions
|
||||
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help categories
|
||||
NULL mysql help_keyword BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help keywords
|
||||
NULL mysql help_relation BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL keyword-topic relation
|
||||
NULL mysql help_topic BASE TABLE MyISAM 10 Dynamic 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help topics
|
||||
NULL mysql host BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Host privileges; Merged with database privileges
|
||||
NULL mysql proc BASE TABLE MyISAM 10 Dynamic 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL Stored Procedures
|
||||
NULL mysql procs_priv BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Procedure privileges
|
||||
|
@ -12269,7 +12098,8 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_
|
|||
|
||||
root@localhost db_datadict_2
|
||||
REVOKE SELECT ON db_datadict.tb_6_401402_1 FROM 'user_1'@'localhost';
|
||||
SELECT * FROM information_schema.statistics;
|
||||
SELECT * FROM information_schema.statistics
|
||||
WHERE NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL db_datadict tb_6_401402_1 0 db_datadict PRIMARY 1 f1 A 0 NULL NULL BTREE
|
||||
NULL db_datadict tb_6_401402_1 1 db_datadict f2_ind 1 f2 A NULL NULL NULL YES BTREE
|
||||
|
@ -12289,14 +12119,6 @@ NULL mysql db 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
|||
NULL mysql db 0 mysql PRIMARY 3 User A 2 NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||
NULL mysql proc 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
||||
. values of the number of rows of tables.
|
||||
.
|
||||
. This .result file has been checked OK with Linux 5.0.23-bk,
|
||||
. ChangeSet@1.2211, 2006-06-28 10:11:43-07:00.
|
||||
. This .result file has been checked OK with Linux 5.0.48,
|
||||
. build tree ChangeSet@1.2477.6.3, 2007-07-30
|
||||
. except that the not fixed Bug#30020 causes a difference.
|
||||
.
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -821,7 +822,8 @@ CHECKSUM NULL
|
|||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT
|
||||
SELECT * FROM tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema')
|
||||
AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA db_datadict
|
||||
TABLE_NAME v1
|
||||
|
@ -950,90 +952,6 @@ CREATE_OPTIONS
|
|||
TABLE_COMMENT User defined functions
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help categories
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_keyword
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help keywords
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_relation
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT keyword-topic relation
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_topic
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help topics
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME host
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
|
@ -2592,7 +2510,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||
select sum(id) from collations;
|
||||
sum(id)
|
||||
10741
|
||||
10995
|
||||
select collation_name, character_set_name into @x,@y
|
||||
from collation_character_set_applicability limit 1;
|
||||
select @x, @y;
|
||||
|
@ -2606,7 +2524,8 @@ END NULL NULL SQL NO CONTAINS SQL NULL DEFINER YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh
|
|||
select count(*) from routines;
|
||||
count(*)
|
||||
1
|
||||
select * from statistics;
|
||||
select * from statistics
|
||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
||||
|
@ -2618,14 +2537,6 @@ NULL mysql db 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
|||
NULL mysql db 0 mysql PRIMARY 3 User A 2 NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||
NULL mysql proc 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||
|
@ -2834,7 +2745,8 @@ NULL mysql PRIMARY NULL mysql user User 2 NULL NULL NULL NULL
|
|||
select count(*) as max_recs from key_column_usage;
|
||||
max_recs
|
||||
40
|
||||
select max(cardinality) from statistics;
|
||||
select max(cardinality) from statistics
|
||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
||||
max(cardinality)
|
||||
393
|
||||
select concat("View '",
|
||||
|
@ -3461,7 +3373,8 @@ CHECKSUM NULL
|
|||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT
|
||||
SELECT * FROM information_schema.tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema')
|
||||
AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA db_datadict
|
||||
TABLE_NAME v1
|
||||
|
@ -3590,90 +3503,6 @@ CREATE_OPTIONS
|
|||
TABLE_COMMENT User defined functions
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help categories
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_keyword
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help keywords
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_relation
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT keyword-topic relation
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME help_topic
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
VERSION 10
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS 0
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
UPDATE_TIME YYYY-MM-DD hh:mm:ss
|
||||
CHECK_TIME YYYY-MM-DD hh:mm:ss
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS
|
||||
TABLE_COMMENT help topics
|
||||
TABLE_CATALOG NULL
|
||||
TABLE_SCHEMA mysql
|
||||
TABLE_NAME host
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MyISAM
|
||||
|
@ -4605,10 +4434,10 @@ COUNT(*)
|
|||
36
|
||||
SELECT COUNT(*) FROM information_schema. collations ;
|
||||
COUNT(*)
|
||||
126
|
||||
127
|
||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||
COUNT(*)
|
||||
126
|
||||
127
|
||||
SELECT COUNT(*) FROM information_schema. routines ;
|
||||
COUNT(*)
|
||||
1
|
||||
|
@ -4684,10 +4513,10 @@ utf8_esperanto_ci utf8
|
|||
utf8_estonian_ci utf8
|
||||
select routine_definition from routines;
|
||||
routine_definition
|
||||
select * from statistics group by index_name asc limit 0, 5;
|
||||
select * from statistics where table_name not like 'help_%'
|
||||
group by index_name asc limit 0, 5;
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL mysql procs_priv 1 mysql Grantor 1 Grantor A NULL NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
||||
|
@ -4784,9 +4613,9 @@ NULL test latin1 latin1_swedish_ci NULL
|
|||
NULL test1 latin1 latin1_swedish_ci NULL
|
||||
select distinct grantee from user_privileges;
|
||||
grantee
|
||||
'root'@'localhost'
|
||||
'root'@'<SERVER_NAME>'
|
||||
'root'@'127.0.0.1'
|
||||
'root'@'<SERVER_NAME>'
|
||||
'root'@'localhost'
|
||||
select all grantee from user_privileges order by grantee, privilege_type;
|
||||
grantee
|
||||
'root'@'127.0.0.1'
|
||||
|
@ -6712,7 +6541,7 @@ Testcase 3.2.1.14:
|
|||
DROP DATABASE IF EXISTS db_datadict;
|
||||
CREATE DATABASE db_datadict;
|
||||
USE db_datadict;
|
||||
create table res_t_401014(f1 char(10), f2 text(25), f3 int);
|
||||
create table res_t_401014(f1 char(10), f2 varchar(25), f3 int);
|
||||
create view res_v_401014 as select * from res_t_401014;
|
||||
create procedure sp_6_401014() select 'db_datadict';
|
||||
create function fn_6_401014() returns int return 0;
|
||||
|
@ -6735,10 +6564,10 @@ from information_schema.columns
|
|||
where table_schema like 'db_datadict%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
NULL db_datadict res_t_401014 f1 1 NULL YES char 10 10 NULL NULL latin1 latin1_swedish_ci char(10) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f1 1 NULL YES char 10 10 NULL NULL latin1 latin1_swedish_ci char(10) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
select table_schema, table_name, is_updatable
|
||||
from information_schema.views
|
||||
|
@ -6851,7 +6680,7 @@ WHERE trigger_schema LIKE 'db_datadict%';
|
|||
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER
|
||||
use db_datadict;
|
||||
alter table res_t_401014 change f1 ff1 int;
|
||||
alter table res_t_401014 engine = innodb;
|
||||
alter table res_t_401014 engine = MEMORY;
|
||||
alter table res_t_401014 change f3 f3_new bigint;
|
||||
alter view res_v_401014 as select ff1 from res_t_401014;
|
||||
alter procedure sp_6_401014 sql security invoker;
|
||||
|
@ -6869,14 +6698,14 @@ select table_catalog, table_schema, engine
|
|||
from information_schema.tables
|
||||
where table_schema like 'db_datadict%';
|
||||
table_catalog table_schema engine
|
||||
NULL db_datadict InnoDB
|
||||
NULL db_datadict MEMORY
|
||||
NULL db_datadict NULL
|
||||
select *
|
||||
from information_schema.columns
|
||||
where table_schema like 'db_datadict%';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
NULL db_datadict res_t_401014 ff1 1 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES tinytext 255 255 NULL NULL latin1 latin1_swedish_ci tinytext select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f2 2 NULL YES varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) select,insert,update,references
|
||||
NULL db_datadict res_t_401014 f3_new 3 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(20) select,insert,update,references
|
||||
NULL db_datadict res_v_401014 ff1 1 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||
select table_schema, table_name, is_updatable
|
||||
|
@ -7464,6 +7293,7 @@ utf8_roman_ci utf8
|
|||
utf8_persian_ci utf8
|
||||
utf8_esperanto_ci utf8
|
||||
utf8_hungarian_ci utf8
|
||||
utf8_general_cs utf8
|
||||
ucs2_general_ci ucs2
|
||||
ucs2_bin ucs2
|
||||
ucs2_unicode_ci ucs2
|
||||
|
@ -8112,6 +7942,7 @@ utf8_roman_ci
|
|||
utf8_persian_ci
|
||||
utf8_esperanto_ci
|
||||
utf8_hungarian_ci
|
||||
utf8_general_cs
|
||||
ucs2_general_ci
|
||||
ucs2_bin
|
||||
ucs2_unicode_ci
|
||||
|
@ -8476,6 +8307,7 @@ utf8_roman_ci utf8 207 Yes 8
|
|||
utf8_persian_ci utf8 208 Yes 8
|
||||
utf8_esperanto_ci utf8 209 Yes 8
|
||||
utf8_hungarian_ci utf8 210 Yes 8
|
||||
utf8_general_cs utf8 254 Yes 1
|
||||
ucs2_general_ci ucs2 35 Yes Yes 1
|
||||
ucs2_bin ucs2 90 Yes 1
|
||||
ucs2_unicode_ci ucs2 128 Yes 8
|
||||
|
@ -8637,6 +8469,7 @@ utf8_roman_ci utf8
|
|||
utf8_persian_ci utf8
|
||||
utf8_esperanto_ci utf8
|
||||
utf8_hungarian_ci utf8
|
||||
utf8_general_cs utf8
|
||||
ucs2_general_ci ucs2
|
||||
ucs2_bin ucs2
|
||||
ucs2_unicode_ci ucs2
|
||||
|
@ -12292,7 +12125,7 @@ NULL information_schema TRIGGERS SYSTEM VIEW MyISAM 0 Dynamic NULL #ARL# #DL# #M
|
|||
NULL information_schema USER_PRIVILEGES SYSTEM VIEW MEMORY 0 Fixed NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL #CO#
|
||||
NULL information_schema VIEWS SYSTEM VIEW MyISAM 0 Dynamic NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL #CO#
|
||||
SELECT * FROM information_schema.tables
|
||||
WHERE NOT( table_schema = 'information_schema');
|
||||
WHERE NOT( table_schema = 'information_schema') AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT
|
||||
NULL db_datadict tb1 BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss latin1_swedish_ci NULL
|
||||
NULL db_datadict tb2 BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss latin1_swedish_ci NULL
|
||||
|
@ -12301,10 +12134,6 @@ NULL db_datadict v3 VIEW NULL NULL NULL NULL #ARL# #DL# #MDL# #IL# #DF# NULL YYY
|
|||
NULL mysql columns_priv BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Column privileges
|
||||
NULL mysql db BASE TABLE MyISAM 10 Fixed 3 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Database privileges
|
||||
NULL mysql func BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL User defined functions
|
||||
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help categories
|
||||
NULL mysql help_keyword BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help keywords
|
||||
NULL mysql help_relation BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL keyword-topic relation
|
||||
NULL mysql help_topic BASE TABLE MyISAM 10 Dynamic 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL help topics
|
||||
NULL mysql host BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Host privileges; Merged with database privileges
|
||||
NULL mysql proc BASE TABLE MyISAM 10 Dynamic 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_general_ci NULL Stored Procedures
|
||||
NULL mysql procs_priv BASE TABLE MyISAM 10 Fixed 0 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss utf8_bin NULL Procedure privileges
|
||||
|
@ -12523,7 +12352,8 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_
|
|||
|
||||
root@localhost db_datadict_2
|
||||
REVOKE SELECT ON db_datadict.tb_6_401402_1 FROM 'user_1'@'localhost';
|
||||
SELECT * FROM information_schema.statistics;
|
||||
SELECT * FROM information_schema.statistics
|
||||
WHERE NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
|
||||
NULL db_datadict tb_6_401402_1 0 db_datadict PRIMARY 1 f1 A 0 NULL NULL BTREE
|
||||
NULL db_datadict tb_6_401402_1 1 db_datadict f2_ind 1 f2 A NULL NULL NULL YES BTREE
|
||||
|
@ -12543,14 +12373,6 @@ NULL mysql db 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
|||
NULL mysql db 0 mysql PRIMARY 3 User A 2 NULL NULL BTREE
|
||||
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql PRIMARY 1 help_category_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_category 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_keyword 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 1 help_keyword_id A NULL NULL NULL BTREE
|
||||
NULL mysql help_relation 0 mysql PRIMARY 2 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 0 NULL NULL BTREE
|
||||
NULL mysql help_topic 0 mysql name 1 name A 0 NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL NULL NULL BTREE
|
||||
NULL mysql host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||
NULL mysql proc 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||
|
|
73
mysql-test/suite/funcs_1/t/datadict_help_tables_build.test
Normal file
73
mysql-test/suite/funcs_1/t/datadict_help_tables_build.test
Normal file
|
@ -0,0 +1,73 @@
|
|||
###### suite/funcs_1/t/datadict_help_tables_dev.test #####
|
||||
#
|
||||
# Check the information about the help tables within
|
||||
# INFORMATION_SCHEMA.TABLES/INFORMATION_SCHEMA.STATISTICS
|
||||
#
|
||||
# Variant for use during build tests (non empty help tables)
|
||||
#
|
||||
# Creation:
|
||||
# 2007-08-25 mleich Add this test as compensation for the
|
||||
# checks removed within datadict_master.inc.
|
||||
#
|
||||
|
||||
let $c_help_category= `SELECT COUNT(*) FROM mysql.help_category`;
|
||||
let $c_help_keyword= `SELECT COUNT(*) FROM mysql.help_keyword`;
|
||||
let $c_help_relation= `SELECT COUNT(*) FROM mysql.help_relation`;
|
||||
let $c_help_topic= `SELECT COUNT(*) FROM mysql.help_topic`;
|
||||
|
||||
if (`SELECT $c_help_category + $c_help_keyword + $c_help_relation
|
||||
+ $c_help_topic = 0`)
|
||||
{
|
||||
--skip # Test requires non empty help tables = Build test configuration
|
||||
}
|
||||
|
||||
# We reach this point when we run on a configuration with at least one
|
||||
# non empty help table.
|
||||
# 2007-08 MySQL 5.0 row count of the help tables
|
||||
# help_category help_keyword help_relation help_topic
|
||||
# 36 395 809 466
|
||||
# Let's assume for all help tables that their content never dramatic
|
||||
# shrinks and do some plausibility checks.
|
||||
let $limit_help_category = 30;
|
||||
let $limit_help_keyword = 320;
|
||||
let $limit_help_relation = 640;
|
||||
let $limit_help_topic = 380;
|
||||
if (`SELECT $c_help_category < $limit_help_category
|
||||
OR $c_help_keyword < $limit_help_keyword
|
||||
OR $c_help_relation < $limit_help_relation
|
||||
OR $c_help_topic < $limit_help_topic`)
|
||||
{
|
||||
--echo # The row count within the help tables is unexepected small.
|
||||
SELECT COUNT(*), 'exepected: >= $limit_help_category' FROM mysql.help_category;
|
||||
SELECT COUNT(*), 'exepected: >= $limit_help_keyword' FROM mysql.help_keyword;
|
||||
SELECT COUNT(*), 'exepected: >= $limit_help_relation' FROM mysql.help_relation;
|
||||
SELECT COUNT(*), 'exepected: >= $limit_help_topic' FROM mysql.help_topic;
|
||||
--echo # Either the current help table content (build problem? or
|
||||
--echo # the expected minimum row count within this script is wrong.
|
||||
--echo # Abort
|
||||
exit;
|
||||
}
|
||||
|
||||
# Enforce a static number of rows within the help tables.
|
||||
let $limit= `SELECT $c_help_category - $limit_help_category`;
|
||||
--replace_result $limit <number>
|
||||
eval DELETE FROM mysql.help_category LIMIT $limit;
|
||||
#
|
||||
let $limit= `SELECT $c_help_keyword - $limit_help_keyword`;
|
||||
--replace_result $limit <number>
|
||||
eval DELETE FROM mysql.help_keyword LIMIT $limit;
|
||||
#
|
||||
let $limit= `SELECT $c_help_relation - $limit_help_relation`;
|
||||
--replace_result $limit <number>
|
||||
eval DELETE FROM mysql.help_relation LIMIT $limit;
|
||||
#
|
||||
let $limit= `SELECT $c_help_topic - $limit_help_topic`;
|
||||
--replace_result $limit <number>
|
||||
eval DELETE FROM mysql.help_topic LIMIT $limit;
|
||||
|
||||
|
||||
--replace_column 9 "#ARL#" 10 "#DL#" 11 "#MDL#" 12 "#IL#" 13 "#DF#" 15 "YYYY-MM-DD hh:mm:ss" 16 "YYYY-MM-DD hh:mm:ss" 17 "YYYY-MM-DD hh:mm:ss"
|
||||
SELECT * FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
||||
SELECT * FROM INFORMATION_SCHEMA.STATISTICS
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
27
mysql-test/suite/funcs_1/t/datadict_help_tables_dev.test
Normal file
27
mysql-test/suite/funcs_1/t/datadict_help_tables_dev.test
Normal file
|
@ -0,0 +1,27 @@
|
|||
###### suite/funcs_1/t/datadict_help_tables_dev.test #####
|
||||
#
|
||||
# Check the information about the help tables within
|
||||
# INFORMATION_SCHEMA.TABLES/INFORMATION_SCHEMA.STATISTICS
|
||||
#
|
||||
# Variant for use during development (empty help tables)
|
||||
#
|
||||
# Creation:
|
||||
# 2007-08-25 mleich Add this test as compensation for the
|
||||
# checks removed within datadict_master.inc.
|
||||
#
|
||||
|
||||
let $c_help_category= `SELECT COUNT(*) FROM mysql.help_category`;
|
||||
let $c_help_keyword= `SELECT COUNT(*) FROM mysql.help_keyword`;
|
||||
let $c_help_relation= `SELECT COUNT(*) FROM mysql.help_relation`;
|
||||
let $c_help_topic= `SELECT COUNT(*) FROM mysql.help_topic`;
|
||||
if (`SELECT $c_help_category + $c_help_keyword + $c_help_relation
|
||||
+ $c_help_topic > 0`)
|
||||
{
|
||||
--skip # Test requires empty help tables = Development test configuration
|
||||
}
|
||||
|
||||
--replace_column 9 "#ARL#" 10 "#DL#" 11 "#MDL#" 12 "#IL#" 13 "#DF#" 15 "YYYY-MM-DD hh:mm:ss" 16 "YYYY-MM-DD hh:mm:ss" 17 "YYYY-MM-DD hh:mm:ss"
|
||||
SELECT * FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
||||
SELECT * FROM INFORMATION_SCHEMA.STATISTICS
|
||||
WHERE TABLE_SCHEMA = 'mysql' AND TABLE_NAME LIKE 'help_%';
|
|
@ -3,5 +3,9 @@
|
|||
--source include/have_innodb.inc
|
||||
|
||||
let $engine_type= innodb;
|
||||
# $OTHER_ENGINE_TYPE must be
|
||||
# - <> $engine_type
|
||||
# - all time available like MyISAM or MEMORY
|
||||
let $OTHER_ENGINE_TYPE= MEMORY;
|
||||
|
||||
--source suite/funcs_1/datadict/datadict_master.inc
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#### suite/funcs_1/t/datadict_memory.test
|
||||
#
|
||||
let $engine_type= memory;
|
||||
# $OTHER_ENGINE_TYPE must be
|
||||
# - <> $engine_type
|
||||
# - all time available like MyISAM or MEMORY
|
||||
let $OTHER_ENGINE_TYPE= MyISAM;
|
||||
|
||||
--source suite/funcs_1/datadict/datadict_master.inc
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#### suite/funcs_1/t/datadict_myisam.test
|
||||
#
|
||||
|
||||
let $engine_type= myisam;
|
||||
# $OTHER_ENGINE_TYPE must be
|
||||
# - <> $engine_type
|
||||
# - all time available like MyISAM or MEMORY
|
||||
let $OTHER_ENGINE_TYPE= MEMORY;
|
||||
|
||||
--source suite/funcs_1/datadict/datadict_master.inc
|
||||
|
|
|
@ -126,7 +126,7 @@ done
|
|||
cflags=`echo "$cflags"|sed -e 's/ *\$//'`
|
||||
|
||||
# Same for --libs(_r)
|
||||
for remove in lmtmalloc static-libcxa i-static
|
||||
for remove in lmtmalloc static-libcxa i-static static-intel
|
||||
do
|
||||
# We know the strings starts with a space
|
||||
libs=`echo "$libs"|sed -e "s/ -$remove */ /g"`
|
||||
|
|
|
@ -145,4 +145,4 @@ SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
|
|||
|
||||
ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
|
||||
ADD_DEPENDENCIES(udf_example strings)
|
||||
TARGET_LINK_LIBRARIES(udf_example wsock32)
|
||||
TARGET_LINK_LIBRARIES(udf_example strings wsock32)
|
||||
|
|
21
win/build-nmake-x64.bat
Normal file
21
win/build-nmake-x64.bat
Normal file
|
@ -0,0 +1,21 @@
|
|||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
if exist cmakecache.txt del cmakecache.txt
|
||||
copy win\nmake_x64_cache.txt cmakecache.txt
|
||||
cmake -G "NMake Makefiles"
|
||||
copy cmakecache.txt win\nmake_x64_cache.txt
|
21
win/build-nmake.bat
Normal file
21
win/build-nmake.bat
Normal file
|
@ -0,0 +1,21 @@
|
|||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
if exist cmakecache.txt del cmakecache.txt
|
||||
copy win\nmake_cache.txt cmakecache.txt
|
||||
cmake -G "NMake Makefiles"
|
||||
copy cmakecache.txt win\nmake_cache.txt
|
Loading…
Reference in a new issue