Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
52b90054
Commit
52b90054
authored
Nov 14, 2008
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge
parents
c5da8fbe
f9f8cc58
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
264 additions
and
129 deletions
+264
-129
mysql-test/r/create.result
mysql-test/r/create.result
+2
-2
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+55
-9
mysql-test/r/information_schema_part.result
mysql-test/r/information_schema_part.result
+6
-0
mysql-test/r/mysqlcheck.result
mysql-test/r/mysqlcheck.result
+6
-0
mysql-test/r/show_check.result
mysql-test/r/show_check.result
+13
-13
mysql-test/suite/funcs_1/datadict/is_tables.inc
mysql-test/suite/funcs_1/datadict/is_tables.inc
+1
-0
mysql-test/suite/funcs_1/r/is_character_sets.result
mysql-test/suite/funcs_1/r/is_character_sets.result
+6
-6
mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result
...funcs_1/r/is_collation_character_set_applicability.result
+6
-6
mysql-test/suite/funcs_1/r/is_collations.result
mysql-test/suite/funcs_1/r/is_collations.result
+6
-6
mysql-test/suite/funcs_1/r/is_columns.result
mysql-test/suite/funcs_1/r/is_columns.result
+6
-6
mysql-test/suite/funcs_1/r/is_columns_is.result
mysql-test/suite/funcs_1/r/is_columns_is.result
+32
-32
mysql-test/suite/funcs_1/r/is_routines.result
mysql-test/suite/funcs_1/r/is_routines.result
+3
-3
mysql-test/suite/funcs_1/r/is_schemata.result
mysql-test/suite/funcs_1/r/is_schemata.result
+6
-6
mysql-test/suite/funcs_1/r/is_tables.result
mysql-test/suite/funcs_1/r/is_tables.result
+4
-3
mysql-test/t/federated_innodb.test
mysql-test/t/federated_innodb.test
+6
-1
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+27
-0
mysql-test/t/information_schema_part.test
mysql-test/t/information_schema_part.test
+10
-0
mysql-test/t/mysqlcheck.test
mysql-test/t/mysqlcheck.test
+7
-0
mysys/my_init.c
mysys/my_init.c
+0
-2
sql/sql_show.cc
sql/sql_show.cc
+56
-34
sql/sql_table.cc
sql/sql_table.cc
+6
-0
No files found.
mysql-test/r/create.result
View file @
52b90054
...
...
@@ -1754,8 +1754,8 @@ create table t1 like information_schema.character_sets;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
64
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
`MAXLEN` bigint(3) NOT NULL DEFAULT '0'
) ENGINE=MEMORY DEFAULT CHARSET=utf8
...
...
mysql-test/r/information_schema.result
View file @
52b90054
...
...
@@ -517,8 +517,8 @@ drop table t1;
SHOW CREATE TABLE INFORMATION_SCHEMA.character_sets;
Table Create Table
CHARACTER_SETS CREATE TEMPORARY TABLE `CHARACTER_SETS` (
`CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
64
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
`MAXLEN` bigint(3) NOT NULL DEFAULT '0'
) ENGINE=MEMORY DEFAULT CHARSET=utf8
...
...
@@ -526,8 +526,8 @@ set names latin2;
SHOW CREATE TABLE INFORMATION_SCHEMA.character_sets;
Table Create Table
CHARACTER_SETS CREATE TEMPORARY TABLE `CHARACTER_SETS` (
`CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
64
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
`MAXLEN` bigint(3) NOT NULL DEFAULT '0'
) ENGINE=MEMORY DEFAULT CHARSET=utf8
...
...
@@ -541,8 +541,8 @@ alter table t1 default character set utf8;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
64
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
`MAXLEN` bigint(3) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8
...
...
@@ -716,8 +716,8 @@ select column_type from information_schema.columns
where table_schema="information_schema" and table_name="COLUMNS" and
(column_name="character_set_name" or column_name="collation_name");
column_type
varchar(
64
)
varchar(
64
)
varchar(
32
)
varchar(
32
)
select TABLE_ROWS from information_schema.tables where
table_schema="information_schema" and table_name="COLUMNS";
TABLE_ROWS
...
...
@@ -764,7 +764,6 @@ information_schema PARTITIONS PARTITION_DESCRIPTION
information_schema PLUGINS PLUGIN_DESCRIPTION
information_schema PROCESSLIST INFO
information_schema ROUTINES ROUTINE_DEFINITION
information_schema ROUTINES SQL_MODE
information_schema TRIGGERS ACTION_CONDITION
information_schema TRIGGERS ACTION_STATEMENT
information_schema VIEWS VIEW_DEFINITION
...
...
@@ -1652,4 +1651,51 @@ id select_type table type possible_keys key key_len ref rows Extra
explain select count(*) from information_schema.views;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE views ALL NULL NULL NULL NULL NULL Open_frm_only; Scanned all databases
set global init_connect="drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;";
select * from information_schema.global_variables where variable_name='init_connect';
VARIABLE_NAME VARIABLE_VALUE
INIT_CONNECT drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists t1;
drop table if exists t1;drop table if exists
Warnings:
Warning 1265 Data truncated for column 'VARIABLE_VALUE' at row 1
set global init_connect="";
End of 5.1 tests.
mysql-test/r/information_schema_part.result
View file @
52b90054
...
...
@@ -145,3 +145,9 @@ table_schema = "test" AND table_name = "t1";
PARTITION_DESCRIPTION
10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53
drop table t1;
drop table if exists t1;
create table t1 (f1 int key) partition by key(f1) partitions 2;
select create_options from information_schema.tables where table_schema="test";
create_options
partitioned
drop table t1;
mysql-test/r/mysqlcheck.result
View file @
52b90054
...
...
@@ -98,6 +98,12 @@ drop view v_bug25347;
drop table t_bug25347;
drop database d_bug25347;
use test;
create view v1 as select * from information_schema.routines;
check table v1, information_schema.routines;
Table Op Msg_type Msg_text
test.v1 check status OK
information_schema.routines check note The storage engine for the table doesn't support check
drop view v1;
End of 5.0 tests
create table t1(a int);
create view v1 as select * from t1;
...
...
mysql-test/r/show_check.result
View file @
52b90054
...
...
@@ -100,19 +100,19 @@ drop table t1;
show variables like "wait_timeout%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def VARIABLES VARIABLE_NAME Variable_name 253 64 12 N 1 0 8
def VARIABLES VARIABLE_VALUE Value 253
20480
5 Y 0 0 8
def VARIABLES VARIABLE_VALUE Value 253
1024
5 Y 0 0 8
Variable_name Value
wait_timeout 28800
show variables like "WAIT_timeout%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def VARIABLES VARIABLE_NAME Variable_name 253 64 12 N 1 0 8
def VARIABLES VARIABLE_VALUE Value 253
20480
5 Y 0 0 8
def VARIABLES VARIABLE_VALUE Value 253
1024
5 Y 0 0 8
Variable_name Value
wait_timeout 28800
show variables like "this_doesn't_exists%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def VARIABLES VARIABLE_NAME Variable_name 253 64 0 N 1 0 8
def VARIABLES VARIABLE_VALUE Value 253
20480
0 Y 0 0 8
def VARIABLES VARIABLE_VALUE Value 253
1024
0 Y 0 0 8
Variable_name Value
show table status from test like "this_doesn't_exists%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
...
...
@@ -130,7 +130,7 @@ def TABLES AUTO_INCREMENT Auto_increment 8 21 0 Y 32800 0 63
def TABLES CREATE_TIME Create_time 12 19 0 Y 128 0 63
def TABLES UPDATE_TIME Update_time 12 19 0 Y 128 0 63
def TABLES CHECK_TIME Check_time 12 19 0 Y 128 0 63
def TABLES TABLE_COLLATION Collation 253
64
0 Y 0 0 8
def TABLES TABLE_COLLATION Collation 253
32
0 Y 0 0 8
def TABLES CHECKSUM Checksum 8 21 0 Y 32800 0 63
def TABLES CREATE_OPTIONS Create_options 253 255 0 Y 0 0 8
def TABLES TABLE_COMMENT Comment 253 80 0 N 1 0 8
...
...
@@ -858,17 +858,17 @@ set names utf8;
----------------------------------------------------------------
SHOW CHARACTER SET LIKE 'utf8';
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def CHARACTER_SETS CHARACTER_SET_NAME Charset 253
192
4 N 1 0 33
def CHARACTER_SETS CHARACTER_SET_NAME Charset 253
96
4 N 1 0 33
def CHARACTER_SETS DESCRIPTION Description 253 180 13 N 1 0 33
def CHARACTER_SETS DEFAULT_COLLATE_NAME Default collation 253
192
15 N 1 0 33
def CHARACTER_SETS DEFAULT_COLLATE_NAME Default collation 253
96
15 N 1 0 33
def CHARACTER_SETS MAXLEN Maxlen 8 3 1 N 32769 0 63
Charset Description Default collation Maxlen
utf8 UTF-8 Unicode utf8_general_ci 3
----------------------------------------------------------------
SHOW COLLATION LIKE 'latin1_bin';
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def COLLATIONS COLLATION_NAME Collation 253
192
10 N 1 0 33
def COLLATIONS CHARACTER_SET_NAME Charset 253
192
6 N 1 0 33
def COLLATIONS COLLATION_NAME Collation 253
96
10 N 1 0 33
def COLLATIONS CHARACTER_SET_NAME Charset 253
96
6 N 1 0 33
def COLLATIONS ID Id 8 11 2 N 32769 0 63
def COLLATIONS IS_DEFAULT Default 253 9 0 N 1 0 33
def COLLATIONS IS_COMPILED Compiled 253 9 3 N 1 0 33
...
...
@@ -935,7 +935,7 @@ def TABLES TABLE_NAME TABLE_NAME 253 192 2 N 1 0 33
def TABLES TABLE_TYPE TABLE_TYPE 253 192 10 N 1 0 33
def TABLES ENGINE ENGINE 253 192 6 Y 0 0 33
def TABLES ROW_FORMAT ROW_FORMAT 253 30 5 Y 0 0 33
def TABLES TABLE_COLLATION TABLE_COLLATION 253
192
17 Y 0 0 33
def TABLES TABLE_COLLATION TABLE_COLLATION 253
96
17 Y 0 0 33
def TABLES CREATE_OPTIONS CREATE_OPTIONS 253 765 0 Y 0 0 33
def TABLES TABLE_COMMENT TABLE_COMMENT 253 240 0 N 1 0 33
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE ROW_FORMAT TABLE_COLLATION CREATE_OPTIONS TABLE_COMMENT
...
...
@@ -966,8 +966,8 @@ def COLUMNS COLUMN_NAME COLUMN_NAME 253 192 1 N 1 0 33
def COLUMNS COLUMN_DEFAULT COLUMN_DEFAULT 252 589815 0 Y 16 0 33
def COLUMNS IS_NULLABLE IS_NULLABLE 253 9 2 N 1 0 33
def COLUMNS DATA_TYPE DATA_TYPE 253 192 3 N 1 0 33
def COLUMNS CHARACTER_SET_NAME CHARACTER_SET_NAME 253
192
0 Y 0 0 33
def COLUMNS COLLATION_NAME COLLATION_NAME 253
192
0 Y 0 0 33
def COLUMNS CHARACTER_SET_NAME CHARACTER_SET_NAME 253
96
0 Y 0 0 33
def COLUMNS COLLATION_NAME COLLATION_NAME 253
96
0 Y 0 0 33
def COLUMNS COLUMN_TYPE COLUMN_TYPE 252 589815 7 N 17 0 33
def COLUMNS COLUMN_KEY COLUMN_KEY 253 9 3 N 1 0 33
def COLUMNS EXTRA EXTRA 253 81 0 N 1 0 33
...
...
@@ -1125,7 +1125,7 @@ def ROUTINES IS_DETERMINISTIC IS_DETERMINISTIC 253 9 2 N 1 0 33
def ROUTINES SQL_DATA_ACCESS SQL_DATA_ACCESS 253 192 12 N 1 0 33
def ROUTINES SQL_PATH SQL_PATH 253 192 0 Y 0 0 33
def ROUTINES SECURITY_TYPE SECURITY_TYPE 253 21 7 N 1 0 33
def ROUTINES SQL_MODE SQL_MODE 25
2 589815 0 N 17
0 33
def ROUTINES SQL_MODE SQL_MODE 25
3 24576 0 N 1
0 33
def ROUTINES ROUTINE_COMMENT ROUTINE_COMMENT 253 192 0 N 1 0 33
def ROUTINES DEFINER DEFINER 253 231 14 N 1 0 33
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE SQL_MODE ROUTINE_COMMENT DEFINER
...
...
@@ -1180,7 +1180,7 @@ def ROUTINES IS_DETERMINISTIC IS_DETERMINISTIC 253 9 2 N 1 0 33
def ROUTINES SQL_DATA_ACCESS SQL_DATA_ACCESS 253 192 12 N 1 0 33
def ROUTINES SQL_PATH SQL_PATH 253 192 0 Y 0 0 33
def ROUTINES SECURITY_TYPE SECURITY_TYPE 253 21 7 N 1 0 33
def ROUTINES SQL_MODE SQL_MODE 25
2 589815 0 N 17
0 33
def ROUTINES SQL_MODE SQL_MODE 25
3 24576 0 N 1
0 33
def ROUTINES ROUTINE_COMMENT ROUTINE_COMMENT 253 192 0 N 1 0 33
def ROUTINES DEFINER DEFINER 253 231 14 N 1 0 33
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE SQL_MODE ROUTINE_COMMENT DEFINER
...
...
mysql-test/suite/funcs_1/datadict/is_tables.inc
View file @
52b90054
...
...
@@ -346,6 +346,7 @@ WHERE table_name = 't1_my_tablex';
# Enforce a time difference bigger than the smallest unit (1 second).
--
real_sleep
1.1
INSERT
INTO
db_datadict
.
t1_my_tablex
SET
f1
=
3
;
FLUSH
TABLES
;
SELECT
UPDATE_TIME
>
@
UPDATE_TIME
AS
"Is current UPDATE_TIME bigger than before last INSERT?"
FROM
information_schema
.
tables
...
...
mysql-test/suite/funcs_1/r/is_character_sets.result
View file @
52b90054
...
...
@@ -28,22 +28,22 @@ DROP FUNCTION test.f1;
#########################################################################
DESCRIBE information_schema.CHARACTER_SETS;
Field Type Null Key Default Extra
CHARACTER_SET_NAME varchar(
64
) NO
DEFAULT_COLLATE_NAME varchar(
64
) NO
CHARACTER_SET_NAME varchar(
32
) NO
DEFAULT_COLLATE_NAME varchar(
32
) NO
DESCRIPTION varchar(60) NO
MAXLEN bigint(3) NO 0
SHOW CREATE TABLE information_schema.CHARACTER_SETS;
Table Create Table
CHARACTER_SETS CREATE TEMPORARY TABLE `CHARACTER_SETS` (
`CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
64
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DEFAULT_COLLATE_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DESCRIPTION` varchar(60) NOT NULL DEFAULT '',
`MAXLEN` bigint(3) NOT NULL DEFAULT '0'
) ENGINE=MEMORY DEFAULT CHARSET=utf8
SHOW COLUMNS FROM information_schema.CHARACTER_SETS;
Field Type Null Key Default Extra
CHARACTER_SET_NAME varchar(
64
) NO
DEFAULT_COLLATE_NAME varchar(
64
) NO
CHARACTER_SET_NAME varchar(
32
) NO
DEFAULT_COLLATE_NAME varchar(
32
) NO
DESCRIPTION varchar(60) NO
MAXLEN bigint(3) NO 0
# Testcases 3.2.2.2 and 3.2.2.3 are checked in suite/funcs_1/t/charset_collation*.test
...
...
mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result
View file @
52b90054
...
...
@@ -28,18 +28,18 @@ DROP FUNCTION test.f1;
#########################################################################
DESCRIBE information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
Field Type Null Key Default Extra
COLLATION_NAME varchar(
64
) NO
CHARACTER_SET_NAME varchar(
64
) NO
COLLATION_NAME varchar(
32
) NO
CHARACTER_SET_NAME varchar(
32
) NO
SHOW CREATE TABLE information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
Table Create Table
COLLATION_CHARACTER_SET_APPLICABILITY CREATE TEMPORARY TABLE `COLLATION_CHARACTER_SET_APPLICABILITY` (
`COLLATION_NAME` varchar(
64
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT ''
`COLLATION_NAME` varchar(
32
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT ''
) ENGINE=MEMORY DEFAULT CHARSET=utf8
SHOW COLUMNS FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
Field Type Null Key Default Extra
COLLATION_NAME varchar(
64
) NO
CHARACTER_SET_NAME varchar(
64
) NO
COLLATION_NAME varchar(
32
) NO
CHARACTER_SET_NAME varchar(
32
) NO
# Testcases 3.2.4.2 and 3.2.4.3 are checked in suite/funcs_1/t/charset_collation*.test
########################################################################
# Testcases 3.2.1.3-3.2.1.5 + 3.2.1.8-3.2.1.12: INSERT/UPDATE/DELETE and
...
...
mysql-test/suite/funcs_1/r/is_collations.result
View file @
52b90054
...
...
@@ -28,8 +28,8 @@ DROP FUNCTION test.f1;
#########################################################################
DESCRIBE information_schema.COLLATIONS;
Field Type Null Key Default Extra
COLLATION_NAME varchar(
64
) NO
CHARACTER_SET_NAME varchar(
64
) NO
COLLATION_NAME varchar(
32
) NO
CHARACTER_SET_NAME varchar(
32
) NO
ID bigint(11) NO 0
IS_DEFAULT varchar(3) NO
IS_COMPILED varchar(3) NO
...
...
@@ -37,8 +37,8 @@ SORTLEN bigint(3) NO 0
SHOW CREATE TABLE information_schema.COLLATIONS;
Table Create Table
COLLATIONS CREATE TEMPORARY TABLE `COLLATIONS` (
`COLLATION_NAME` varchar(
64
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT '',
`COLLATION_NAME` varchar(
32
) NOT NULL DEFAULT '',
`CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT '',
`ID` bigint(11) NOT NULL DEFAULT '0',
`IS_DEFAULT` varchar(3) NOT NULL DEFAULT '',
`IS_COMPILED` varchar(3) NOT NULL DEFAULT '',
...
...
@@ -46,8 +46,8 @@ COLLATIONS CREATE TEMPORARY TABLE `COLLATIONS` (
) ENGINE=MEMORY DEFAULT CHARSET=utf8
SHOW COLUMNS FROM information_schema.COLLATIONS;
Field Type Null Key Default Extra
COLLATION_NAME varchar(
64
) NO
CHARACTER_SET_NAME varchar(
64
) NO
COLLATION_NAME varchar(
32
) NO
CHARACTER_SET_NAME varchar(
32
) NO
ID bigint(11) NO 0
IS_DEFAULT varchar(3) NO
IS_COMPILED varchar(3) NO
...
...
mysql-test/suite/funcs_1/r/is_columns.result
View file @
52b90054
...
...
@@ -40,8 +40,8 @@ CHARACTER_MAXIMUM_LENGTH bigint(21) unsigned YES NULL
CHARACTER_OCTET_LENGTH bigint(21) unsigned YES NULL
NUMERIC_PRECISION bigint(21) unsigned YES NULL
NUMERIC_SCALE bigint(21) unsigned YES NULL
CHARACTER_SET_NAME varchar(
64
) YES NULL
COLLATION_NAME varchar(
64
) YES NULL
CHARACTER_SET_NAME varchar(
32
) YES NULL
COLLATION_NAME varchar(
32
) YES NULL
COLUMN_TYPE longtext NO NULL
COLUMN_KEY varchar(3) NO
EXTRA varchar(27) NO
...
...
@@ -62,8 +62,8 @@ COLUMNS CREATE TEMPORARY TABLE `COLUMNS` (
`CHARACTER_OCTET_LENGTH` bigint(21) unsigned DEFAULT NULL,
`NUMERIC_PRECISION` bigint(21) unsigned DEFAULT NULL,
`NUMERIC_SCALE` bigint(21) unsigned DEFAULT NULL,
`CHARACTER_SET_NAME` varchar(
64
) DEFAULT NULL,
`COLLATION_NAME` varchar(
64
) DEFAULT NULL,
`CHARACTER_SET_NAME` varchar(
32
) DEFAULT NULL,
`COLLATION_NAME` varchar(
32
) DEFAULT NULL,
`COLUMN_TYPE` longtext NOT NULL,
`COLUMN_KEY` varchar(3) NOT NULL DEFAULT '',
`EXTRA` varchar(27) NOT NULL DEFAULT '',
...
...
@@ -84,8 +84,8 @@ CHARACTER_MAXIMUM_LENGTH bigint(21) unsigned YES NULL
CHARACTER_OCTET_LENGTH bigint(21) unsigned YES NULL
NUMERIC_PRECISION bigint(21) unsigned YES NULL
NUMERIC_SCALE bigint(21) unsigned YES NULL
CHARACTER_SET_NAME varchar(
64
) YES NULL
COLLATION_NAME varchar(
64
) YES NULL
CHARACTER_SET_NAME varchar(
32
) YES NULL
COLLATION_NAME varchar(
32
) YES NULL
COLUMN_TYPE longtext NO NULL
COLUMN_KEY varchar(3) NO
EXTRA varchar(27) NO
...
...
mysql-test/suite/funcs_1/r/is_columns_is.result
View file @
52b90054
...
...
@@ -3,22 +3,22 @@ WHERE table_schema = 'information_schema'
AND table_name <> 'profiling'
ORDER BY table_schema, table_name, column_name;
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 information_schema CHARACTER_SETS CHARACTER_SET_NAME 1 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema CHARACTER_SETS DEFAULT_COLLATE_NAME 2 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema CHARACTER_SETS CHARACTER_SET_NAME 1 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema CHARACTER_SETS DEFAULT_COLLATE_NAME 2 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema CHARACTER_SETS DESCRIPTION 3 NO varchar 60 180 NULL NULL utf8 utf8_general_ci varchar(60) select
NULL information_schema CHARACTER_SETS MAXLEN 4 0 NO bigint NULL NULL 19 0 NULL NULL bigint(3) select
NULL information_schema COLLATIONS CHARACTER_SET_NAME 2 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema COLLATIONS COLLATION_NAME 1 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema COLLATIONS CHARACTER_SET_NAME 2 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema COLLATIONS COLLATION_NAME 1 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema COLLATIONS ID 3 0 NO bigint NULL NULL 19 0 NULL NULL bigint(11) select
NULL information_schema COLLATIONS IS_COMPILED 5 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
NULL information_schema COLLATIONS IS_DEFAULT 4 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
NULL information_schema COLLATIONS SORTLEN 6 0 NO bigint NULL NULL 19 0 NULL NULL bigint(3) select
NULL information_schema COLLATION_CHARACTER_SET_APPLICABILITY CHARACTER_SET_NAME 2 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME 1 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema COLLATION_CHARACTER_SET_APPLICABILITY CHARACTER_SET_NAME 2 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME 1 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema COLUMNS CHARACTER_MAXIMUM_LENGTH 9 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema COLUMNS CHARACTER_OCTET_LENGTH 10 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
NULL information_schema COLUMNS COLUMN_DEFAULT 6 NULL YES longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
...
...
@@ -110,9 +110,9 @@ NULL information_schema FILES UPDATE_COUNT 13 NULL YES bigint NULL NULL 19 0 NUL
NULL information_schema FILES UPDATE_TIME 34 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select
NULL information_schema FILES VERSION 25 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema GLOBAL_STATUS VARIABLE_NAME 1 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema GLOBAL_STATUS VARIABLE_VALUE 2 NULL YES varchar
20480 61440 NULL NULL utf8 utf8_general_ci varchar(20480
) select
NULL information_schema GLOBAL_STATUS VARIABLE_VALUE 2 NULL YES varchar
1024 3072 NULL NULL utf8 utf8_general_ci varchar(1024
) select
NULL information_schema GLOBAL_VARIABLES VARIABLE_NAME 1 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema GLOBAL_VARIABLES VARIABLE_VALUE 2 NULL YES varchar
20480 61440 NULL NULL utf8 utf8_general_ci varchar(20480
) select
NULL information_schema GLOBAL_VARIABLES VARIABLE_VALUE 2 NULL YES varchar
1024 3072 NULL NULL utf8 utf8_general_ci varchar(1024
) select
NULL information_schema KEY_COLUMN_USAGE COLUMN_NAME 7 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema KEY_COLUMN_USAGE CONSTRAINT_CATALOG 1 NULL YES varchar 512 1536 NULL NULL utf8 utf8_general_ci varchar(512) select
NULL information_schema KEY_COLUMN_USAGE CONSTRAINT_NAME 3 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
...
...
@@ -200,11 +200,11 @@ NULL information_schema ROUTINES ROUTINE_TYPE 5 NO varchar 9 27 NULL NULL utf8
NULL information_schema ROUTINES SECURITY_TYPE 15 NO varchar 7 21 NULL NULL utf8 utf8_general_ci varchar(7) select
NULL information_schema ROUTINES SPECIFIC_NAME 1 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema ROUTINES SQL_DATA_ACCESS 13 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema ROUTINES SQL_MODE 18
NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext
select
NULL information_schema ROUTINES SQL_MODE 18
NO varchar 8192 24576 NULL NULL utf8 utf8_general_ci varchar(8192)
select
NULL information_schema ROUTINES SQL_PATH 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema SCHEMATA CATALOG_NAME 1 NULL YES varchar 512 1536 NULL NULL utf8 utf8_general_ci varchar(512) select
NULL information_schema SCHEMATA DEFAULT_CHARACTER_SET_NAME 3 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema SCHEMATA DEFAULT_COLLATION_NAME 4 NO varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema SCHEMATA DEFAULT_CHARACTER_SET_NAME 3 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema SCHEMATA DEFAULT_COLLATION_NAME 4 NO varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema SCHEMATA SCHEMA_NAME 2 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema SCHEMATA SQL_PATH 5 NULL YES varchar 512 1536 NULL NULL utf8 utf8_general_ci varchar(512) select
NULL information_schema SCHEMA_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
...
...
@@ -213,9 +213,9 @@ NULL information_schema SCHEMA_PRIVILEGES PRIVILEGE_TYPE 4 NO varchar 64 192 NU
NULL information_schema SCHEMA_PRIVILEGES TABLE_CATALOG 2 NULL YES varchar 512 1536 NULL NULL utf8 utf8_general_ci varchar(512) select
NULL information_schema SCHEMA_PRIVILEGES TABLE_SCHEMA 3 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema SESSION_STATUS VARIABLE_NAME 1 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema SESSION_STATUS VARIABLE_VALUE 2 NULL YES varchar
20480 61440 NULL NULL utf8 utf8_general_ci varchar(20480
) select
NULL information_schema SESSION_STATUS VARIABLE_VALUE 2 NULL YES varchar
1024 3072 NULL NULL utf8 utf8_general_ci varchar(1024
) select
NULL information_schema SESSION_VARIABLES VARIABLE_NAME 1 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema SESSION_VARIABLES VARIABLE_VALUE 2 NULL YES varchar
20480 61440 NULL NULL utf8 utf8_general_ci varchar(20480
) select
NULL information_schema SESSION_VARIABLES VARIABLE_VALUE 2 NULL YES varchar
1024 3072 NULL NULL utf8 utf8_general_ci varchar(1024
) select
NULL information_schema STATISTICS CARDINALITY 10 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(21) select
NULL information_schema STATISTICS COLLATION 9 NULL YES varchar 1 3 NULL NULL utf8 utf8_general_ci varchar(1) select
NULL information_schema STATISTICS COLUMN_NAME 8 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
...
...
@@ -244,7 +244,7 @@ NULL information_schema TABLES INDEX_LENGTH 12 NULL YES bigint NULL NULL 19 0 NU
NULL information_schema TABLES MAX_DATA_LENGTH 11 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
NULL information_schema TABLES ROW_FORMAT 7 NULL YES varchar 10 30 NULL NULL utf8 utf8_general_ci varchar(10) select
NULL information_schema TABLES TABLE_CATALOG 1 NULL YES varchar 512 1536 NULL NULL utf8 utf8_general_ci varchar(512) select
NULL information_schema TABLES TABLE_COLLATION 18 NULL YES varchar
64 192 NULL NULL utf8 utf8_general_ci varchar(64
) select
NULL information_schema TABLES TABLE_COLLATION 18 NULL YES varchar
32 96 NULL NULL utf8 utf8_general_ci varchar(32
) select
NULL information_schema TABLES TABLE_COMMENT 21 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
NULL information_schema TABLES TABLE_NAME 3 NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
NULL information_schema TABLES TABLE_ROWS 8 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(21) unsigned select
...
...
@@ -357,18 +357,18 @@ WHERE table_schema = 'information_schema'
AND table_name <> 'profiling'
ORDER BY TABLE_SCHEMA, TABLE_NAME, ORDINAL_POSITION;
COL_CML TABLE_SCHEMA TABLE_NAME COLUMN_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE
3.0000 information_schema CHARACTER_SETS CHARACTER_SET_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema CHARACTER_SETS DEFAULT_COLLATE_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema CHARACTER_SETS CHARACTER_SET_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema CHARACTER_SETS DEFAULT_COLLATE_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema CHARACTER_SETS DESCRIPTION varchar 60 180 utf8 utf8_general_ci varchar(60)
NULL information_schema CHARACTER_SETS MAXLEN bigint NULL NULL NULL NULL bigint(3)
3.0000 information_schema COLLATIONS COLLATION_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema COLLATIONS CHARACTER_SET_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema COLLATIONS COLLATION_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema COLLATIONS CHARACTER_SET_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
NULL information_schema COLLATIONS ID bigint NULL NULL NULL NULL bigint(11)
3.0000 information_schema COLLATIONS IS_DEFAULT varchar 3 9 utf8 utf8_general_ci varchar(3)
3.0000 information_schema COLLATIONS IS_COMPILED varchar 3 9 utf8 utf8_general_ci varchar(3)
NULL information_schema COLLATIONS SORTLEN bigint NULL NULL NULL NULL bigint(3)
3.0000 information_schema COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema COLLATION_CHARACTER_SET_APPLICABILITY CHARACTER_SET_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema COLLATION_CHARACTER_SET_APPLICABILITY CHARACTER_SET_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema COLUMNS TABLE_CATALOG varchar 512 1536 utf8 utf8_general_ci varchar(512)
3.0000 information_schema COLUMNS TABLE_SCHEMA varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema COLUMNS TABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
...
...
@@ -381,8 +381,8 @@ NULL information_schema COLUMNS CHARACTER_MAXIMUM_LENGTH bigint NULL NULL NULL N
NULL information_schema COLUMNS CHARACTER_OCTET_LENGTH bigint NULL NULL NULL NULL bigint(21) unsigned
NULL information_schema COLUMNS NUMERIC_PRECISION bigint NULL NULL NULL NULL bigint(21) unsigned
NULL information_schema COLUMNS NUMERIC_SCALE bigint NULL NULL NULL NULL bigint(21) unsigned
3.0000 information_schema COLUMNS CHARACTER_SET_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema COLUMNS COLLATION_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema COLUMNS CHARACTER_SET_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema COLUMNS COLLATION_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
1.0000 information_schema COLUMNS COLUMN_TYPE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
3.0000 information_schema COLUMNS COLUMN_KEY varchar 3 9 utf8 utf8_general_ci varchar(3)
3.0000 information_schema COLUMNS EXTRA varchar 27 81 utf8 utf8_general_ci varchar(27)
...
...
@@ -464,9 +464,9 @@ NULL information_schema FILES CHECKSUM bigint NULL NULL NULL NULL bigint(21) uns
3.0000 information_schema FILES STATUS varchar 20 60 utf8 utf8_general_ci varchar(20)
3.0000 information_schema FILES EXTRA varchar 255 765 utf8 utf8_general_ci varchar(255)
3.0000 information_schema GLOBAL_STATUS VARIABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema GLOBAL_STATUS VARIABLE_VALUE varchar
20480 61440 utf8 utf8_general_ci varchar(20480
)
3.0000 information_schema GLOBAL_STATUS VARIABLE_VALUE varchar
1024 3072 utf8 utf8_general_ci varchar(1024
)
3.0000 information_schema GLOBAL_VARIABLES VARIABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema GLOBAL_VARIABLES VARIABLE_VALUE varchar
20480 61440 utf8 utf8_general_ci varchar(20480
)
3.0000 information_schema GLOBAL_VARIABLES VARIABLE_VALUE varchar
1024 3072 utf8 utf8_general_ci varchar(1024
)
3.0000 information_schema KEY_COLUMN_USAGE CONSTRAINT_CATALOG varchar 512 1536 utf8 utf8_general_ci varchar(512)
3.0000 information_schema KEY_COLUMN_USAGE CONSTRAINT_SCHEMA varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema KEY_COLUMN_USAGE CONSTRAINT_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
...
...
@@ -550,7 +550,7 @@ NULL information_schema PROCESSLIST TIME bigint NULL NULL NULL NULL bigint(7)
3.0000 information_schema ROUTINES SECURITY_TYPE varchar 7 21 utf8 utf8_general_ci varchar(7)
NULL information_schema ROUTINES CREATED datetime NULL NULL NULL NULL datetime
NULL information_schema ROUTINES LAST_ALTERED datetime NULL NULL NULL NULL datetime
1.0000 information_schema ROUTINES SQL_MODE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
3.0000 information_schema ROUTINES SQL_MODE varchar 8192 24576 utf8 utf8_general_ci varchar(8192)
3.0000 information_schema ROUTINES ROUTINE_COMMENT varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema ROUTINES DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
3.0000 information_schema ROUTINES CHARACTER_SET_CLIENT varchar 32 96 utf8 utf8_general_ci varchar(32)
...
...
@@ -558,8 +558,8 @@ NULL information_schema ROUTINES LAST_ALTERED datetime NULL NULL NULL NULL datet
3.0000 information_schema ROUTINES DATABASE_COLLATION varchar 32 96 utf8 utf8_general_ci varchar(32)
3.0000 information_schema SCHEMATA CATALOG_NAME varchar 512 1536 utf8 utf8_general_ci varchar(512)
3.0000 information_schema SCHEMATA SCHEMA_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema SCHEMATA DEFAULT_CHARACTER_SET_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema SCHEMATA DEFAULT_COLLATION_NAME varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema SCHEMATA DEFAULT_CHARACTER_SET_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema SCHEMATA DEFAULT_COLLATION_NAME varchar
32 96 utf8 utf8_general_ci varchar(32
)
3.0000 information_schema SCHEMATA SQL_PATH varchar 512 1536 utf8 utf8_general_ci varchar(512)
3.0000 information_schema SCHEMA_PRIVILEGES GRANTEE varchar 81 243 utf8 utf8_general_ci varchar(81)
3.0000 information_schema SCHEMA_PRIVILEGES TABLE_CATALOG varchar 512 1536 utf8 utf8_general_ci varchar(512)
...
...
@@ -567,9 +567,9 @@ NULL information_schema ROUTINES LAST_ALTERED datetime NULL NULL NULL NULL datet
3.0000 information_schema SCHEMA_PRIVILEGES PRIVILEGE_TYPE varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema SCHEMA_PRIVILEGES IS_GRANTABLE varchar 3 9 utf8 utf8_general_ci varchar(3)
3.0000 information_schema SESSION_STATUS VARIABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema SESSION_STATUS VARIABLE_VALUE varchar
20480 61440 utf8 utf8_general_ci varchar(20480
)
3.0000 information_schema SESSION_STATUS VARIABLE_VALUE varchar
1024 3072 utf8 utf8_general_ci varchar(1024
)
3.0000 information_schema SESSION_VARIABLES VARIABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema SESSION_VARIABLES VARIABLE_VALUE varchar
20480 61440 utf8 utf8_general_ci varchar(20480
)
3.0000 information_schema SESSION_VARIABLES VARIABLE_VALUE varchar
1024 3072 utf8 utf8_general_ci varchar(1024
)
3.0000 information_schema STATISTICS TABLE_CATALOG varchar 512 1536 utf8 utf8_general_ci varchar(512)
3.0000 information_schema STATISTICS TABLE_SCHEMA varchar 64 192 utf8 utf8_general_ci varchar(64)
3.0000 information_schema STATISTICS TABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
...
...
@@ -602,7 +602,7 @@ NULL information_schema TABLES AUTO_INCREMENT bigint NULL NULL NULL NULL bigint(
NULL information_schema TABLES CREATE_TIME datetime NULL NULL NULL NULL datetime
NULL information_schema TABLES UPDATE_TIME datetime NULL NULL NULL NULL datetime
NULL information_schema TABLES CHECK_TIME datetime NULL NULL NULL NULL datetime
3.0000 information_schema TABLES TABLE_COLLATION varchar
64 192 utf8 utf8_general_ci varchar(64
)
3.0000 information_schema TABLES TABLE_COLLATION varchar
32 96 utf8 utf8_general_ci varchar(32
)
NULL information_schema TABLES CHECKSUM bigint NULL NULL NULL NULL bigint(21) unsigned
3.0000 information_schema TABLES CREATE_OPTIONS varchar 255 765 utf8 utf8_general_ci varchar(255)
3.0000 information_schema TABLES TABLE_COMMENT varchar 80 240 utf8 utf8_general_ci varchar(80)
...
...
mysql-test/suite/funcs_1/r/is_routines.result
View file @
52b90054
...
...
@@ -45,7 +45,7 @@ SQL_PATH varchar(64) YES NULL
SECURITY_TYPE varchar(7) NO
CREATED datetime NO 0000-00-00 00:00:00
LAST_ALTERED datetime NO 0000-00-00 00:00:00
SQL_MODE
longtext NO NULL
SQL_MODE
varchar(8192) NO
ROUTINE_COMMENT varchar(64) NO
DEFINER varchar(77) NO
CHARACTER_SET_CLIENT varchar(32) NO
...
...
@@ -71,7 +71,7 @@ ROUTINES CREATE TEMPORARY TABLE `ROUTINES` (
`SECURITY_TYPE` varchar(7) NOT NULL DEFAULT '',
`CREATED` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`LAST_ALTERED` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`SQL_MODE`
longtext NOT NULL
,
`SQL_MODE`
varchar(8192) NOT NULL DEFAULT ''
,
`ROUTINE_COMMENT` varchar(64) NOT NULL DEFAULT '',
`DEFINER` varchar(77) NOT NULL DEFAULT '',
`CHARACTER_SET_CLIENT` varchar(32) NOT NULL DEFAULT '',
...
...
@@ -97,7 +97,7 @@ SQL_PATH varchar(64) YES NULL
SECURITY_TYPE varchar(7) NO
CREATED datetime NO 0000-00-00 00:00:00
LAST_ALTERED datetime NO 0000-00-00 00:00:00
SQL_MODE
longtext NO NULL
SQL_MODE
varchar(8192) NO
ROUTINE_COMMENT varchar(64) NO
DEFINER varchar(77) NO
CHARACTER_SET_CLIENT varchar(32) NO
...
...
mysql-test/suite/funcs_1/r/is_schemata.result
View file @
52b90054
...
...
@@ -30,24 +30,24 @@ DESCRIBE information_schema.SCHEMATA;
Field Type Null Key Default Extra
CATALOG_NAME varchar(512) YES NULL
SCHEMA_NAME varchar(64) NO
DEFAULT_CHARACTER_SET_NAME varchar(
64
) NO
DEFAULT_COLLATION_NAME varchar(
64
) NO
DEFAULT_CHARACTER_SET_NAME varchar(
32
) NO
DEFAULT_COLLATION_NAME varchar(
32
) NO
SQL_PATH varchar(512) YES NULL
SHOW CREATE TABLE information_schema.SCHEMATA;
Table Create Table
SCHEMATA CREATE TEMPORARY TABLE `SCHEMATA` (
`CATALOG_NAME` varchar(512) DEFAULT NULL,
`SCHEMA_NAME` varchar(64) NOT NULL DEFAULT '',
`DEFAULT_CHARACTER_SET_NAME` varchar(
64
) NOT NULL DEFAULT '',
`DEFAULT_COLLATION_NAME` varchar(
64
) NOT NULL DEFAULT '',
`DEFAULT_CHARACTER_SET_NAME` varchar(
32
) NOT NULL DEFAULT '',
`DEFAULT_COLLATION_NAME` varchar(
32
) NOT NULL DEFAULT '',
`SQL_PATH` varchar(512) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=utf8
SHOW COLUMNS FROM information_schema.SCHEMATA;
Field Type Null Key Default Extra
CATALOG_NAME varchar(512) YES NULL
SCHEMA_NAME varchar(64) NO
DEFAULT_CHARACTER_SET_NAME varchar(
64
) NO
DEFAULT_COLLATION_NAME varchar(
64
) NO
DEFAULT_CHARACTER_SET_NAME varchar(
32
) NO
DEFAULT_COLLATION_NAME varchar(
32
) NO
SQL_PATH varchar(512) YES NULL
SELECT catalog_name, schema_name, sql_path
FROM information_schema.schemata
...
...
mysql-test/suite/funcs_1/r/is_tables.result
View file @
52b90054
...
...
@@ -45,7 +45,7 @@ AUTO_INCREMENT bigint(21) unsigned YES NULL
CREATE_TIME datetime YES NULL
UPDATE_TIME datetime YES NULL
CHECK_TIME datetime YES NULL
TABLE_COLLATION varchar(
64
) YES NULL
TABLE_COLLATION varchar(
32
) YES NULL
CHECKSUM bigint(21) unsigned YES NULL
CREATE_OPTIONS varchar(255) YES NULL
TABLE_COMMENT varchar(80) NO
...
...
@@ -69,7 +69,7 @@ TABLES CREATE TEMPORARY TABLE `TABLES` (
`CREATE_TIME` datetime DEFAULT NULL,
`UPDATE_TIME` datetime DEFAULT NULL,
`CHECK_TIME` datetime DEFAULT NULL,
`TABLE_COLLATION` varchar(
64
) DEFAULT NULL,
`TABLE_COLLATION` varchar(
32
) DEFAULT NULL,
`CHECKSUM` bigint(21) unsigned DEFAULT NULL,
`CREATE_OPTIONS` varchar(255) DEFAULT NULL,
`TABLE_COMMENT` varchar(80) NOT NULL DEFAULT ''
...
...
@@ -93,7 +93,7 @@ AUTO_INCREMENT bigint(21) unsigned YES NULL
CREATE_TIME datetime YES NULL
UPDATE_TIME datetime YES NULL
CHECK_TIME datetime YES NULL
TABLE_COLLATION varchar(
64
) YES NULL
TABLE_COLLATION varchar(
32
) YES NULL
CHECKSUM bigint(21) unsigned YES NULL
CREATE_OPTIONS varchar(255) YES NULL
TABLE_COMMENT varchar(80) NO
...
...
@@ -310,6 +310,7 @@ SELECT UPDATE_TIME, checksum INTO @UPDATE_TIME, @checksum
FROM information_schema.tables
WHERE table_name = 't1_my_tablex';
INSERT INTO db_datadict.t1_my_tablex SET f1 = 3;
FLUSH TABLES;
SELECT UPDATE_TIME > @UPDATE_TIME
AS "Is current UPDATE_TIME bigger than before last INSERT?"
FROM information_schema.tables
...
...
mysql-test/t/federated_innodb.test
View file @
52b90054
source
include
/
federated
.
inc
;
# NOTE: Keep any include/ files that will kill / skip a test BEFORE any others
# having federated.inc before have_innodb.inc allows for an orphaned database
# that can cause other tests to fail.
# See Bug #40645 Test main.federated_innodb does not always clean up after itself
source
include
/
have_innodb
.
inc
;
source
include
/
federated
.
inc
;
#
# Bug#25513 Federated transaction failures
...
...
mysql-test/t/information_schema.test
View file @
52b90054
...
...
@@ -1346,4 +1346,31 @@ explain select count(*) from information_schema.tables;
explain
select
count
(
*
)
from
information_schema
.
columns
;
explain
select
count
(
*
)
from
information_schema
.
views
;
#
# Bug#39955 SELECT on INFORMATION_SCHEMA.GLOBAL_VARIABLES takes too long
#
set
global
init_connect
=
"drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;\
drop table if exists t1;drop table if exists t1;"
;
select
*
from
information_schema
.
global_variables
where
variable_name
=
'init_connect'
;
set
global
init_connect
=
""
;
--
echo
End
of
5.1
tests
.
mysql-test/t/information_schema_part.test
View file @
52b90054
...
...
@@ -121,3 +121,13 @@ SHOW CREATE TABLE t1;
SELECT
PARTITION_DESCRIPTION
FROM
information_schema
.
partitions
WHERE
table_schema
=
"test"
AND
table_name
=
"t1"
;
drop
table
t1
;
#
# Bug#38909 CREATE_OPTIONS in information_schema produces wrong results
#
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
f1
int
key
)
partition
by
key
(
f1
)
partitions
2
;
select
create_options
from
information_schema
.
tables
where
table_schema
=
"test"
;
drop
table
t1
;
mysql-test/t/mysqlcheck.test
View file @
52b90054
...
...
@@ -71,6 +71,13 @@ drop table t_bug25347;
drop
database
d_bug25347
;
use
test
;
#
# Bug#39541 CHECK TABLE on information_schema myisam tables produces error
#
create
view
v1
as
select
*
from
information_schema
.
routines
;
check
table
v1
,
information_schema
.
routines
;
drop
view
v1
;
--
echo
End
of
5.0
tests
#
...
...
mysys/my_init.c
View file @
52b90054
...
...
@@ -320,8 +320,6 @@ static void my_win_init(void)
const
char
*
targetKey
=
"Software
\\
MySQL"
;
DBUG_ENTER
(
"my_win_init"
);
setlocale
(
LC_CTYPE
,
""
);
/* To get right sortorder */
#if defined(_MSC_VER)
#if _MSC_VER < 1300
/*
...
...
sql/sql_show.cc
View file @
52b90054
...
...
@@ -83,6 +83,7 @@ static void store_key_options(THD *thd, String *packet, TABLE *table,
static
void
append_algorithm
(
TABLE_LIST
*
table
,
String
*
buff
);
static
COND
*
make_cond_for_info_schema
(
COND
*
cond
,
TABLE_LIST
*
table
);
/***************************************************************************
** List all table types supported
...
...
@@ -2072,7 +2073,8 @@ static bool show_status_array(THD *thd, const char *wild,
enum
enum_var_type
value_type
,
struct
system_status_var
*
status_var
,
const
char
*
prefix
,
TABLE
*
table
,
bool
ucase_names
)
bool
ucase_names
,
COND
*
cond
)
{
MY_ALIGNED_BYTE_ARRAY
(
buff_data
,
SHOW_VAR_FUNC_BUFF_SIZE
,
long
);
char
*
const
buff
=
(
char
*
)
&
buff_data
;
...
...
@@ -2082,8 +2084,12 @@ static bool show_status_array(THD *thd, const char *wild,
int
len
;
LEX_STRING
null_lex_str
;
SHOW_VAR
tmp
,
*
var
;
COND
*
partial_cond
=
0
;
enum_check_fields
save_count_cuted_fields
=
thd
->
count_cuted_fields
;
bool
res
=
FALSE
;
DBUG_ENTER
(
"show_status_array"
);
thd
->
count_cuted_fields
=
CHECK_FIELD_WARN
;
null_lex_str
.
str
=
0
;
// For sys_var->value_ptr()
null_lex_str
.
length
=
0
;
...
...
@@ -2091,6 +2097,7 @@ static bool show_status_array(THD *thd, const char *wild,
if
(
*
prefix
)
*
prefix_end
++=
'_'
;
len
=
name_buffer
+
sizeof
(
name_buffer
)
-
prefix_end
;
partial_cond
=
make_cond_for_info_schema
(
cond
,
table
->
pos_in_table_list
);
for
(;
variables
->
name
;
variables
++
)
{
...
...
@@ -2099,6 +2106,9 @@ static bool show_status_array(THD *thd, const char *wild,
if
(
ucase_names
)
make_upper
(
name_buffer
);
restore_record
(
table
,
s
->
default_values
);
table
->
field
[
0
]
->
store
(
name_buffer
,
strlen
(
name_buffer
),
system_charset_info
);
/*
if var->type is SHOW_FUNC, call the function.
Repeat as necessary, if new var is again SHOW_FUNC
...
...
@@ -2110,12 +2120,13 @@ static bool show_status_array(THD *thd, const char *wild,
if
(
show_type
==
SHOW_ARRAY
)
{
show_status_array
(
thd
,
wild
,
(
SHOW_VAR
*
)
var
->
value
,
value_type
,
status_var
,
name_buffer
,
table
,
ucase_names
);
status_var
,
name_buffer
,
table
,
ucase_names
,
partial_cond
);
}
else
{
if
(
!
(
wild
&&
wild
[
0
]
&&
wild_case_compare
(
system_charset_info
,
name_buffer
,
wild
)))
name_buffer
,
wild
))
&&
(
!
partial_cond
||
partial_cond
->
val_int
()))
{
char
*
value
=
var
->
value
;
const
char
*
pos
,
*
end
;
// We assign a lot of const's
...
...
@@ -2202,21 +2213,23 @@ static bool show_status_array(THD *thd, const char *wild,
DBUG_ASSERT
(
0
);
break
;
}
restore_record
(
table
,
s
->
default_values
);
table
->
field
[
0
]
->
store
(
name_buffer
,
strlen
(
name_buffer
),
system_charset_info
);
table
->
field
[
1
]
->
store
(
pos
,
(
uint32
)
(
end
-
pos
),
system_charset_info
);
thd
->
count_cuted_fields
=
CHECK_FIELD_IGNORE
;
table
->
field
[
1
]
->
set_notnull
();
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
if
(
schema_table_store_record
(
thd
,
table
))
DBUG_RETURN
(
TRUE
);
{
res
=
TRUE
;
goto
end
;
}
}
}
}
DBUG_RETURN
(
FALSE
);
end:
thd
->
count_cuted_fields
=
save_count_cuted_fields
;
DBUG_RETURN
(
res
);
}
...
...
@@ -3498,6 +3511,7 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
TABLE_SHARE
*
share
=
show_table
->
s
;
handler
*
file
=
show_table
->
file
;
handlerton
*
tmp_db_type
=
share
->
db_type
();
bool
is_partitioned
=
FALSE
;
if
(
share
->
tmp_table
==
SYSTEM_TMP_TABLE
)
table
->
field
[
3
]
->
store
(
STRING_WITH_LEN
(
"SYSTEM VIEW"
),
cs
);
else
if
(
share
->
tmp_table
)
...
...
@@ -3514,7 +3528,10 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
#ifdef WITH_PARTITION_STORAGE_ENGINE
if
(
share
->
db_type
()
==
partition_hton
&&
share
->
partition_info_len
)
{
tmp_db_type
=
share
->
default_part_db_type
;
is_partitioned
=
TRUE
;
}
#endif
tmp_buff
=
(
char
*
)
ha_resolve_storage_engine_name
(
tmp_db_type
);
table
->
field
[
4
]
->
store
(
tmp_buff
,
strlen
(
tmp_buff
),
cs
);
...
...
@@ -3559,9 +3576,7 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
NullS
);
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
if
(
show_table
->
s
->
db_type
()
==
partition_hton
&&
show_table
->
part_info
!=
NULL
&&
show_table
->
part_info
->
no_parts
>
0
)
if
(
is_partitioned
)
ptr
=
strmov
(
ptr
,
" partitioned"
);
#endif
if
(
share
->
transactional
!=
HA_CHOICE_UNDEF
)
...
...
@@ -5244,7 +5259,7 @@ int fill_variables(THD *thd, TABLE_LIST *tables, COND *cond)
rw_rdlock
(
&
LOCK_system_variables_hash
);
res
=
show_status_array
(
thd
,
wild
,
enumerate_sys_vars
(
thd
,
sorted_vars
),
option_type
,
NULL
,
""
,
tables
->
table
,
upper_case_names
);
option_type
,
NULL
,
""
,
tables
->
table
,
upper_case_names
,
cond
);
rw_unlock
(
&
LOCK_system_variables_hash
);
DBUG_RETURN
(
res
);
}
...
...
@@ -5287,7 +5302,7 @@ int fill_status(THD *thd, TABLE_LIST *tables, COND *cond)
res
=
show_status_array
(
thd
,
wild
,
(
SHOW_VAR
*
)
all_status_vars
.
buffer
,
option_type
,
tmp1
,
""
,
tables
->
table
,
upper_case_names
);
upper_case_names
,
cond
);
pthread_mutex_unlock
(
&
LOCK_status
);
DBUG_RETURN
(
res
);
}
...
...
@@ -6013,9 +6028,10 @@ ST_FIELD_INFO schema_fields_info[]=
{
"CATALOG_NAME"
,
FN_REFLEN
,
MYSQL_TYPE_STRING
,
0
,
1
,
0
,
SKIP_OPEN_TABLE
},
{
"SCHEMA_NAME"
,
NAME_CHAR_LEN
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Database"
,
SKIP_OPEN_TABLE
},
{
"DEFAULT_CHARACTER_SET_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
{
"DEFAULT_CHARACTER_SET_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"DEFAULT_COLLATION_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"DEFAULT_COLLATION_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"SQL_PATH"
,
FN_REFLEN
,
MYSQL_TYPE_STRING
,
0
,
1
,
0
,
SKIP_OPEN_TABLE
},
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
}
};
...
...
@@ -6049,7 +6065,8 @@ ST_FIELD_INFO tables_fields_info[]=
{
"CREATE_TIME"
,
0
,
MYSQL_TYPE_DATETIME
,
0
,
1
,
"Create_time"
,
OPEN_FULL_TABLE
},
{
"UPDATE_TIME"
,
0
,
MYSQL_TYPE_DATETIME
,
0
,
1
,
"Update_time"
,
OPEN_FULL_TABLE
},
{
"CHECK_TIME"
,
0
,
MYSQL_TYPE_DATETIME
,
0
,
1
,
"Check_time"
,
OPEN_FULL_TABLE
},
{
"TABLE_COLLATION"
,
64
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Collation"
,
OPEN_FRM_ONLY
},
{
"TABLE_COLLATION"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Collation"
,
OPEN_FRM_ONLY
},
{
"CHECKSUM"
,
MY_INT64_NUM_DECIMAL_DIGITS
,
MYSQL_TYPE_LONGLONG
,
0
,
(
MY_I_S_MAYBE_NULL
|
MY_I_S_UNSIGNED
),
"Checksum"
,
OPEN_FULL_TABLE
},
{
"CREATE_OPTIONS"
,
255
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Create_options"
,
...
...
@@ -6080,8 +6097,10 @@ ST_FIELD_INFO columns_fields_info[]=
0
,
(
MY_I_S_MAYBE_NULL
|
MY_I_S_UNSIGNED
),
0
,
OPEN_FRM_ONLY
},
{
"NUMERIC_SCALE"
,
MY_INT64_NUM_DECIMAL_DIGITS
,
MYSQL_TYPE_LONGLONG
,
0
,
(
MY_I_S_MAYBE_NULL
|
MY_I_S_UNSIGNED
),
0
,
OPEN_FRM_ONLY
},
{
"CHARACTER_SET_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
1
,
0
,
OPEN_FRM_ONLY
},
{
"COLLATION_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Collation"
,
OPEN_FRM_ONLY
},
{
"CHARACTER_SET_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
1
,
0
,
OPEN_FRM_ONLY
},
{
"COLLATION_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Collation"
,
OPEN_FRM_ONLY
},
{
"COLUMN_TYPE"
,
65535
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Type"
,
OPEN_FRM_ONLY
},
{
"COLUMN_KEY"
,
3
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Key"
,
OPEN_FRM_ONLY
},
{
"EXTRA"
,
27
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Extra"
,
OPEN_FRM_ONLY
},
...
...
@@ -6093,10 +6112,10 @@ ST_FIELD_INFO columns_fields_info[]=
ST_FIELD_INFO
charsets_fields_info
[]
=
{
{
"CHARACTER_SET_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Charset"
,
SKIP_OPEN_TABLE
},
{
"DEFAULT_COLLATE_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Default collation"
,
{
"CHARACTER_SET_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Charset"
,
SKIP_OPEN_TABLE
},
{
"DEFAULT_COLLATE_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Default collation"
,
SKIP_OPEN_TABLE
},
{
"DESCRIPTION"
,
60
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Description"
,
SKIP_OPEN_TABLE
},
{
"MAXLEN"
,
3
,
MYSQL_TYPE_LONGLONG
,
0
,
0
,
"Maxlen"
,
SKIP_OPEN_TABLE
},
...
...
@@ -6106,8 +6125,9 @@ ST_FIELD_INFO charsets_fields_info[]=
ST_FIELD_INFO
collation_fields_info
[]
=
{
{
"COLLATION_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Collation"
,
SKIP_OPEN_TABLE
},
{
"CHARACTER_SET_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Charset"
,
{
"COLLATION_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Collation"
,
SKIP_OPEN_TABLE
},
{
"CHARACTER_SET_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Charset"
,
SKIP_OPEN_TABLE
},
{
"ID"
,
MY_INT32_NUM_DECIMAL_DIGITS
,
MYSQL_TYPE_LONGLONG
,
0
,
0
,
"Id"
,
SKIP_OPEN_TABLE
},
...
...
@@ -6170,8 +6190,10 @@ ST_FIELD_INFO events_fields_info[]=
ST_FIELD_INFO
coll_charset_app_fields_info
[]
=
{
{
"COLLATION_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"CHARACTER_SET_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"COLLATION_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"CHARACTER_SET_NAME"
,
MY_CS_NAME_SIZE
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
}
};
...
...
@@ -6200,7 +6222,7 @@ ST_FIELD_INFO proc_fields_info[]=
SKIP_OPEN_TABLE
},
{
"CREATED"
,
0
,
MYSQL_TYPE_DATETIME
,
0
,
0
,
"Created"
,
SKIP_OPEN_TABLE
},
{
"LAST_ALTERED"
,
0
,
MYSQL_TYPE_DATETIME
,
0
,
0
,
"Modified"
,
SKIP_OPEN_TABLE
},
{
"SQL_MODE"
,
65535
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"SQL_MODE"
,
32
*
256
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
},
{
"ROUTINE_COMMENT"
,
NAME_CHAR_LEN
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Comment"
,
SKIP_OPEN_TABLE
},
{
"DEFINER"
,
77
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Definer"
,
SKIP_OPEN_TABLE
},
...
...
@@ -6449,7 +6471,7 @@ ST_FIELD_INFO variables_fields_info[]=
{
{
"VARIABLE_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Variable_name"
,
SKIP_OPEN_TABLE
},
{
"VARIABLE_VALUE"
,
20480
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Value"
,
SKIP_OPEN_TABLE
},
{
"VARIABLE_VALUE"
,
1024
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Value"
,
SKIP_OPEN_TABLE
},
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
,
SKIP_OPEN_TABLE
}
};
...
...
@@ -6608,9 +6630,9 @@ ST_SCHEMA_TABLE schema_tables[]=
{
"FILES"
,
files_fields_info
,
create_schema_table
,
fill_schema_files
,
0
,
0
,
-
1
,
-
1
,
0
,
0
},
{
"GLOBAL_STATUS"
,
variables_fields_info
,
create_schema_table
,
fill_status
,
make_old_format
,
0
,
-
1
,
-
1
,
0
,
0
},
fill_status
,
make_old_format
,
0
,
0
,
-
1
,
0
,
0
},
{
"GLOBAL_VARIABLES"
,
variables_fields_info
,
create_schema_table
,
fill_variables
,
make_old_format
,
0
,
-
1
,
-
1
,
0
,
0
},
fill_variables
,
make_old_format
,
0
,
0
,
-
1
,
0
,
0
},
{
"KEY_COLUMN_USAGE"
,
key_column_usage_fields_info
,
create_schema_table
,
get_all_tables
,
0
,
get_schema_key_column_usage_record
,
4
,
5
,
0
,
OPEN_TABLE_ONLY
},
...
...
@@ -6635,14 +6657,14 @@ ST_SCHEMA_TABLE schema_tables[]=
{
"SCHEMA_PRIVILEGES"
,
schema_privileges_fields_info
,
create_schema_table
,
fill_schema_schema_privileges
,
0
,
0
,
-
1
,
-
1
,
0
,
0
},
{
"SESSION_STATUS"
,
variables_fields_info
,
create_schema_table
,
fill_status
,
make_old_format
,
0
,
-
1
,
-
1
,
0
,
0
},
fill_status
,
make_old_format
,
0
,
0
,
-
1
,
0
,
0
},
{
"SESSION_VARIABLES"
,
variables_fields_info
,
create_schema_table
,
fill_variables
,
make_old_format
,
0
,
-
1
,
-
1
,
0
,
0
},
fill_variables
,
make_old_format
,
0
,
0
,
-
1
,
0
,
0
},
{
"STATISTICS"
,
stat_fields_info
,
create_schema_table
,
get_all_tables
,
make_old_format
,
get_schema_stat_record
,
1
,
2
,
0
,
OPEN_TABLE_ONLY
|
OPTIMIZE_I_S_TABLE
},
{
"STATUS"
,
variables_fields_info
,
create_schema_table
,
fill_status
,
make_old_format
,
0
,
-
1
,
-
1
,
1
,
0
},
make_old_format
,
0
,
0
,
-
1
,
1
,
0
},
{
"TABLES"
,
tables_fields_info
,
create_schema_table
,
get_all_tables
,
make_old_format
,
get_schema_tables_record
,
1
,
2
,
0
,
OPTIMIZE_I_S_TABLE
},
...
...
@@ -6658,7 +6680,7 @@ ST_SCHEMA_TABLE schema_tables[]=
{
"USER_PRIVILEGES"
,
user_privileges_fields_info
,
create_schema_table
,
fill_schema_user_privileges
,
0
,
0
,
-
1
,
-
1
,
0
,
0
},
{
"VARIABLES"
,
variables_fields_info
,
create_schema_table
,
fill_variables
,
make_old_format
,
0
,
-
1
,
-
1
,
1
,
0
},
make_old_format
,
0
,
0
,
-
1
,
1
,
0
},
{
"VIEWS"
,
view_fields_info
,
create_schema_table
,
get_all_tables
,
0
,
get_schema_views_record
,
1
,
2
,
0
,
OPEN_VIEW_ONLY
|
OPTIMIZE_I_S_TABLE
},
...
...
sql/sql_table.cc
View file @
52b90054
...
...
@@ -4293,6 +4293,12 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
goto
send_result
;
}
if
(
table
->
schema_table
)
{
result_code
=
HA_ADMIN_NOT_IMPLEMENTED
;
goto
send_result
;
}
if
((
table
->
table
->
db_stat
&
HA_READ_ONLY
)
&&
open_for_modify
)
{
/* purecov: begin inspected */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment