mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Merge trift-lap.fambruehe:/MySQL/M51/push-5.1
into trift-lap.fambruehe:/MySQL/M51/antony-5.1
This commit is contained in:
@@ -153,8 +153,8 @@ test-bt:
|
|||||||
cd mysql-test ; MTR_BUILD_THREAD=auto \
|
cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
|
@PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
|
||||||
fi
|
fi
|
||||||
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
||||||
|
|
||||||
# Re-enable the "jp" suite when bug#28563 is fixed
|
# Re-enable the "jp" suite when bug#28563 is fixed
|
||||||
# -cd mysql-test ; MTR_BUILD_THREAD=auto \
|
# -cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
|
@@ -10,9 +10,8 @@
|
|||||||
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
||||||
. values of the number of rows of tables.
|
. values of the number of rows of tables.
|
||||||
.
|
.
|
||||||
. This .result file has been checked OK with Linux 5.0.48,
|
. This .result file has been checked OK with Linux 5.0.23-bk,
|
||||||
. build tree ChangeSet@1.2477.6.3, 2007-07-30
|
. ChangeSet@1.2211, 2006-06-28 10:11:43-07:00.
|
||||||
. except that the not fixed Bug#30020 causes a difference.
|
|
||||||
.
|
.
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -21,21 +20,11 @@ FIXME: There are subtests that are switched off due to known bugs:
|
|||||||
SELECT 1 AS "have_bug_11589";
|
SELECT 1 AS "have_bug_11589";
|
||||||
have_bug_11589
|
have_bug_11589
|
||||||
1
|
1
|
||||||
SELECT 1 AS "have_bug_30689";
|
|
||||||
have_bug_30689
|
|
||||||
1
|
|
||||||
|
|
||||||
There are some statements where the ps-protocol is switched off.
|
There are some statements where the ps-protocol is switched off.
|
||||||
This may come from the bug listed below, ir from other problems.
|
This may come from the bug listed below, ir from other problems.
|
||||||
Bug#11589: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
|
Bug#11589: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Selects on INFORMATION_SCHEMA.VIEWS present incomplete
|
|
||||||
content for the column VIEW_DEFINITION in cases where
|
|
||||||
the view selects(=is based) on an INFORMATION_SCHEMA table.
|
|
||||||
---> VIEWS vu and vu1
|
|
||||||
Bug#30689 Wrong content in I_S.VIEWS.VIEW_DEFINITION if VIEW is based on I_S
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
SET @NO_REFRESH = IF( '' = '', 0, 1);
|
SET @NO_REFRESH = IF( '' = '', 0, 1);
|
||||||
DROP DATABASE IF EXISTS test1;
|
DROP DATABASE IF EXISTS test1;
|
||||||
CREATE DATABASE test1;
|
CREATE DATABASE test1;
|
||||||
@@ -1046,8 +1035,7 @@ CHECKSUM NULL
|
|||||||
CREATE_OPTIONS #CO#
|
CREATE_OPTIONS #CO#
|
||||||
TABLE_COMMENT
|
TABLE_COMMENT
|
||||||
SELECT * FROM tables
|
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_CATALOG NULL
|
||||||
TABLE_SCHEMA db_datadict
|
TABLE_SCHEMA db_datadict
|
||||||
TABLE_NAME v1
|
TABLE_NAME v1
|
||||||
@@ -1218,6 +1206,90 @@ CREATE_OPTIONS
|
|||||||
TABLE_COMMENT General log
|
TABLE_COMMENT General log
|
||||||
TABLE_CATALOG NULL
|
TABLE_CATALOG NULL
|
||||||
TABLE_SCHEMA mysql
|
TABLE_SCHEMA mysql
|
||||||
|
TABLE_NAME help_category
|
||||||
|
TABLE_TYPE BASE TABLE
|
||||||
|
ENGINE MyISAM
|
||||||
|
VERSION 10
|
||||||
|
ROW_FORMAT Fixed
|
||||||
|
TABLE_ROWS 37
|
||||||
|
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 424
|
||||||
|
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 901
|
||||||
|
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 479
|
||||||
|
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_NAME host
|
||||||
TABLE_TYPE BASE TABLE
|
TABLE_TYPE BASE TABLE
|
||||||
ENGINE MyISAM
|
ENGINE MyISAM
|
||||||
@@ -3141,7 +3213,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||||||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||||
select sum(id) from collations;
|
select sum(id) from collations;
|
||||||
sum(id)
|
sum(id)
|
||||||
11094
|
10840
|
||||||
select collation_name, character_set_name into @x,@y
|
select collation_name, character_set_name into @x,@y
|
||||||
from collation_character_set_applicability limit 1;
|
from collation_character_set_applicability limit 1;
|
||||||
select @x, @y;
|
select @x, @y;
|
||||||
@@ -3155,8 +3227,7 @@ END NULL NULL SQL NO CONTAINS SQL NULL DEFINER YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh
|
|||||||
select count(*) from routines;
|
select count(*) from routines;
|
||||||
count(*)
|
count(*)
|
||||||
1
|
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
|
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 1 Host A NULL NULL NULL BTREE
|
||||||
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
||||||
@@ -3170,6 +3241,14 @@ NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
|||||||
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||||
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
||||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 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 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 424 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql name 1 name A 424 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 901 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 479 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql name 1 name A 479 NULL NULL BTREE
|
||||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL 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 host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||||
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
||||||
@@ -3400,10 +3479,9 @@ NULL mysql PRIMARY NULL mysql user User 2 NULL NULL NULL NULL
|
|||||||
select count(*) as max_recs from key_column_usage;
|
select count(*) as max_recs from key_column_usage;
|
||||||
max_recs
|
max_recs
|
||||||
45
|
45
|
||||||
select max(cardinality) from statistics
|
select max(cardinality) from statistics;
|
||||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
|
||||||
max(cardinality)
|
max(cardinality)
|
||||||
393
|
901
|
||||||
select concat("View '",
|
select concat("View '",
|
||||||
table_name, "' is associated with the database '", table_schema, "'.")
|
table_name, "' is associated with the database '", table_schema, "'.")
|
||||||
AS "Who is Who for the Views"
|
AS "Who is Who for the Views"
|
||||||
@@ -4293,8 +4371,7 @@ CHECKSUM NULL
|
|||||||
CREATE_OPTIONS #CO#
|
CREATE_OPTIONS #CO#
|
||||||
TABLE_COMMENT
|
TABLE_COMMENT
|
||||||
SELECT * FROM information_schema.tables
|
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_CATALOG NULL
|
||||||
TABLE_SCHEMA db_datadict
|
TABLE_SCHEMA db_datadict
|
||||||
TABLE_NAME v1
|
TABLE_NAME v1
|
||||||
@@ -4465,6 +4542,90 @@ CREATE_OPTIONS
|
|||||||
TABLE_COMMENT General log
|
TABLE_COMMENT General log
|
||||||
TABLE_CATALOG NULL
|
TABLE_CATALOG NULL
|
||||||
TABLE_SCHEMA mysql
|
TABLE_SCHEMA mysql
|
||||||
|
TABLE_NAME help_category
|
||||||
|
TABLE_TYPE BASE TABLE
|
||||||
|
ENGINE MyISAM
|
||||||
|
VERSION 10
|
||||||
|
ROW_FORMAT Fixed
|
||||||
|
TABLE_ROWS 37
|
||||||
|
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 424
|
||||||
|
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 901
|
||||||
|
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 479
|
||||||
|
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_NAME host
|
||||||
TABLE_TYPE BASE TABLE
|
TABLE_TYPE BASE TABLE
|
||||||
ENGINE MyISAM
|
ENGINE MyISAM
|
||||||
@@ -5582,10 +5743,10 @@ COUNT(*)
|
|||||||
36
|
36
|
||||||
SELECT COUNT(*) FROM information_schema. collations ;
|
SELECT COUNT(*) FROM information_schema. collations ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
128
|
127
|
||||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
129
|
128
|
||||||
SELECT COUNT(*) FROM information_schema. routines ;
|
SELECT COUNT(*) FROM information_schema. routines ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
1
|
1
|
||||||
@@ -5662,10 +5823,10 @@ utf8_esperanto_ci utf8
|
|||||||
utf8_estonian_ci utf8
|
utf8_estonian_ci utf8
|
||||||
select routine_definition from routines;
|
select routine_definition from routines;
|
||||||
routine_definition
|
routine_definition
|
||||||
select * from statistics where table_name not like 'help_%'
|
select * from statistics group by index_name asc limit 0, 5;
|
||||||
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
|
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 procs_priv 1 mysql Grantor 1 Grantor A NULL NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL 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
|
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||||
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
||||||
@@ -5779,9 +5940,9 @@ NULL test latin1 latin1_swedish_ci NULL
|
|||||||
NULL test1 latin1 latin1_swedish_ci NULL
|
NULL test1 latin1 latin1_swedish_ci NULL
|
||||||
select distinct grantee from user_privileges;
|
select distinct grantee from user_privileges;
|
||||||
grantee
|
grantee
|
||||||
'root'@'127.0.0.1'
|
|
||||||
'root'@'<SERVER_NAME>'
|
|
||||||
'root'@'localhost'
|
'root'@'localhost'
|
||||||
|
'root'@'<SERVER_NAME>'
|
||||||
|
'root'@'127.0.0.1'
|
||||||
select all grantee from user_privileges order by grantee, privilege_type;
|
select all grantee from user_privileges order by grantee, privilege_type;
|
||||||
grantee
|
grantee
|
||||||
'root'@'127.0.0.1'
|
'root'@'127.0.0.1'
|
||||||
@@ -7731,7 +7892,7 @@ Testcase 3.2.1.14:
|
|||||||
DROP DATABASE IF EXISTS db_datadict;
|
DROP DATABASE IF EXISTS db_datadict;
|
||||||
CREATE DATABASE db_datadict;
|
CREATE DATABASE db_datadict;
|
||||||
USE db_datadict;
|
USE db_datadict;
|
||||||
create table res_t_401014(f1 char(10), f2 varchar(25), f3 int);
|
create table res_t_401014(f1 char(10), f2 text(25), f3 int);
|
||||||
create view res_v_401014 as select * from res_t_401014;
|
create view res_v_401014 as select * from res_t_401014;
|
||||||
create procedure sp_6_401014() select 'db_datadict';
|
create procedure sp_6_401014() select 'db_datadict';
|
||||||
create function fn_6_401014() returns int return 0;
|
create function fn_6_401014() returns int return 0;
|
||||||
@@ -7754,10 +7915,10 @@ from information_schema.columns
|
|||||||
where table_schema like 'db_datadict%';
|
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
|
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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) 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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) 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
|
select table_schema, table_name, is_updatable
|
||||||
from information_schema.views
|
from information_schema.views
|
||||||
@@ -7876,7 +8037,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 CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
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 CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
use db_datadict;
|
use db_datadict;
|
||||||
alter table res_t_401014 change f1 ff1 int;
|
alter table res_t_401014 change f1 ff1 int;
|
||||||
alter table res_t_401014 engine = MEMORY;
|
alter table res_t_401014 engine = innodb;
|
||||||
alter table res_t_401014 change f3 f3_new bigint;
|
alter table res_t_401014 change f3 f3_new bigint;
|
||||||
alter view res_v_401014 as select ff1 from res_t_401014;
|
alter view res_v_401014 as select ff1 from res_t_401014;
|
||||||
alter procedure sp_6_401014 sql security invoker;
|
alter procedure sp_6_401014 sql security invoker;
|
||||||
@@ -7894,14 +8055,14 @@ select table_catalog, table_schema, engine
|
|||||||
from information_schema.tables
|
from information_schema.tables
|
||||||
where table_schema like 'db_datadict%';
|
where table_schema like 'db_datadict%';
|
||||||
table_catalog table_schema engine
|
table_catalog table_schema engine
|
||||||
NULL db_datadict MEMORY
|
NULL db_datadict InnoDB
|
||||||
NULL db_datadict NULL
|
NULL db_datadict NULL
|
||||||
select *
|
select *
|
||||||
from information_schema.columns
|
from information_schema.columns
|
||||||
where table_schema like 'db_datadict%';
|
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
|
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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3_new 3 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(20) 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
|
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
|
select table_schema, table_name, is_updatable
|
||||||
@@ -8542,7 +8703,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@@ -9324,7 +9484,6 @@ utf8_roman_ci
|
|||||||
utf8_persian_ci
|
utf8_persian_ci
|
||||||
utf8_esperanto_ci
|
utf8_esperanto_ci
|
||||||
utf8_hungarian_ci
|
utf8_hungarian_ci
|
||||||
utf8_general_cs
|
|
||||||
ucs2_general_ci
|
ucs2_general_ci
|
||||||
ucs2_bin
|
ucs2_bin
|
||||||
ucs2_unicode_ci
|
ucs2_unicode_ci
|
||||||
@@ -9690,7 +9849,6 @@ utf8_roman_ci utf8 207 Yes 8
|
|||||||
utf8_persian_ci utf8 208 Yes 8
|
utf8_persian_ci utf8 208 Yes 8
|
||||||
utf8_esperanto_ci utf8 209 Yes 8
|
utf8_esperanto_ci utf8 209 Yes 8
|
||||||
utf8_hungarian_ci utf8 210 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_general_ci ucs2 35 Yes Yes 1
|
||||||
ucs2_bin ucs2 90 Yes 1
|
ucs2_bin ucs2 90 Yes 1
|
||||||
ucs2_unicode_ci ucs2 128 Yes 8
|
ucs2_unicode_ci ucs2 128 Yes 8
|
||||||
@@ -9854,7 +10012,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@@ -14179,7 +14336,7 @@ NULL information_schema TRIGGERS SYSTEM VIEW MyISAM 10 Dynamic NULL #ARL# #DL# #
|
|||||||
NULL information_schema USER_PRIVILEGES SYSTEM VIEW MEMORY 10 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 USER_PRIVILEGES SYSTEM VIEW MEMORY 10 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 10 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#
|
NULL information_schema VIEWS SYSTEM VIEW MyISAM 10 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
|
SELECT * FROM information_schema.tables
|
||||||
WHERE NOT( table_schema = 'information_schema') AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
WHERE NOT( table_schema = 'information_schema');
|
||||||
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
|
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 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
|
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
|
||||||
@@ -14190,6 +14347,10 @@ NULL mysql db BASE TABLE MyISAM 10 Fixed 3 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-
|
|||||||
NULL mysql event 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 Events
|
NULL mysql event 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 Events
|
||||||
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 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 general_log BASE TABLE CSV 10 Dynamic 1 #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 General log
|
NULL mysql general_log BASE TABLE CSV 10 Dynamic 1 #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 General log
|
||||||
|
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 37 #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 424 #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 901 #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 479 #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 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 ndb_binlog_index 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 latin1_swedish_ci NULL
|
NULL mysql ndb_binlog_index 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 latin1_swedish_ci NULL
|
||||||
NULL mysql plugin 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 MySQL plugins
|
NULL mysql plugin 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 MySQL plugins
|
||||||
@@ -14418,8 +14579,7 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_
|
|||||||
|
|
||||||
root@localhost db_datadict_2
|
root@localhost db_datadict_2
|
||||||
REVOKE SELECT ON db_datadict.tb_6_401402_1 FROM 'user_1'@'localhost';
|
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
|
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 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
|
NULL db_datadict tb_6_401402_1 1 db_datadict f2_ind 1 f2 A NULL NULL NULL YES BTREE
|
||||||
@@ -14441,6 +14601,14 @@ NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
|||||||
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||||
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
||||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 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 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 424 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql name 1 name A 424 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 901 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 479 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql name 1 name A 479 NULL NULL BTREE
|
||||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL 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 host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||||
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
||||||
|
@@ -81,6 +81,7 @@ BEGIN
|
|||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
||||||
@@ -92,6 +93,7 @@ CREATE PROCEDURE sp1(v1 char(20))
|
|||||||
BEGIN
|
BEGIN
|
||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
DROP USER 'user_1'@'localhost';
|
DROP USER 'user_1'@'localhost';
|
||||||
@@ -117,6 +119,7 @@ CREATE FUNCTION fn1(v1 int) returns int
|
|||||||
BEGIN
|
BEGIN
|
||||||
return v1;
|
return v1;
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
drop user 'user_1'@'localhost';
|
drop user 'user_1'@'localhost';
|
||||||
|
@@ -58,7 +58,6 @@ load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t11;
|
|||||||
|
|
||||||
Section 3.1.10 - CALL checks:
|
Section 3.1.10 - CALL checks:
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
USE db_storedproc;
|
|
||||||
|
|
||||||
Testcase 3.1.10.2 + 3.1.10.5:
|
Testcase 3.1.10.2 + 3.1.10.5:
|
||||||
-----------------------------
|
-----------------------------
|
||||||
@@ -95,6 +94,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
CALL sp31102();
|
CALL sp31102();
|
||||||
@@ -114,6 +114,7 @@ a` a` 1000-01-01 -5000 a` -5000
|
|||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
fn31105( 9 )
|
fn31105( 9 )
|
||||||
81
|
81
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
||||||
@@ -131,6 +132,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
DROP PROCEDURE sp31102;
|
DROP PROCEDURE sp31102;
|
||||||
|
@@ -10,9 +10,8 @@
|
|||||||
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
||||||
. values of the number of rows of tables.
|
. values of the number of rows of tables.
|
||||||
.
|
.
|
||||||
. This .result file has been checked OK with Linux 5.0.48,
|
. This .result file has been checked OK with Linux 5.0.23-bk,
|
||||||
. build tree ChangeSet@1.2477.6.3, 2007-07-30
|
. ChangeSet@1.2211, 2006-06-28 10:11:43-07:00.
|
||||||
. except that the not fixed Bug#30020 causes a difference.
|
|
||||||
.
|
.
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -21,21 +20,11 @@ FIXME: There are subtests that are switched off due to known bugs:
|
|||||||
SELECT 1 AS "have_bug_11589";
|
SELECT 1 AS "have_bug_11589";
|
||||||
have_bug_11589
|
have_bug_11589
|
||||||
1
|
1
|
||||||
SELECT 1 AS "have_bug_30689";
|
|
||||||
have_bug_30689
|
|
||||||
1
|
|
||||||
|
|
||||||
There are some statements where the ps-protocol is switched off.
|
There are some statements where the ps-protocol is switched off.
|
||||||
This may come from the bug listed below, ir from other problems.
|
This may come from the bug listed below, ir from other problems.
|
||||||
Bug#11589: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
|
Bug#11589: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Selects on INFORMATION_SCHEMA.VIEWS present incomplete
|
|
||||||
content for the column VIEW_DEFINITION in cases where
|
|
||||||
the view selects(=is based) on an INFORMATION_SCHEMA table.
|
|
||||||
---> VIEWS vu and vu1
|
|
||||||
Bug#30689 Wrong content in I_S.VIEWS.VIEW_DEFINITION if VIEW is based on I_S
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
SET @NO_REFRESH = IF( '' = '', 0, 1);
|
SET @NO_REFRESH = IF( '' = '', 0, 1);
|
||||||
DROP DATABASE IF EXISTS test1;
|
DROP DATABASE IF EXISTS test1;
|
||||||
CREATE DATABASE test1;
|
CREATE DATABASE test1;
|
||||||
@@ -1044,8 +1033,7 @@ CHECKSUM NULL
|
|||||||
CREATE_OPTIONS #CO#
|
CREATE_OPTIONS #CO#
|
||||||
TABLE_COMMENT
|
TABLE_COMMENT
|
||||||
SELECT * FROM tables
|
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_CATALOG NULL
|
||||||
TABLE_SCHEMA db_datadict
|
TABLE_SCHEMA db_datadict
|
||||||
TABLE_NAME v1
|
TABLE_NAME v1
|
||||||
@@ -1216,6 +1204,90 @@ CREATE_OPTIONS
|
|||||||
TABLE_COMMENT General log
|
TABLE_COMMENT General log
|
||||||
TABLE_CATALOG NULL
|
TABLE_CATALOG NULL
|
||||||
TABLE_SCHEMA mysql
|
TABLE_SCHEMA mysql
|
||||||
|
TABLE_NAME help_category
|
||||||
|
TABLE_TYPE BASE TABLE
|
||||||
|
ENGINE MyISAM
|
||||||
|
VERSION 10
|
||||||
|
ROW_FORMAT Fixed
|
||||||
|
TABLE_ROWS 37
|
||||||
|
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 424
|
||||||
|
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 901
|
||||||
|
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 479
|
||||||
|
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_NAME host
|
||||||
TABLE_TYPE BASE TABLE
|
TABLE_TYPE BASE TABLE
|
||||||
ENGINE MyISAM
|
ENGINE MyISAM
|
||||||
@@ -3124,7 +3196,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||||||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||||
select sum(id) from collations;
|
select sum(id) from collations;
|
||||||
sum(id)
|
sum(id)
|
||||||
11094
|
10840
|
||||||
select collation_name, character_set_name into @x,@y
|
select collation_name, character_set_name into @x,@y
|
||||||
from collation_character_set_applicability limit 1;
|
from collation_character_set_applicability limit 1;
|
||||||
select @x, @y;
|
select @x, @y;
|
||||||
@@ -3138,8 +3210,7 @@ END NULL NULL SQL NO CONTAINS SQL NULL DEFINER YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh
|
|||||||
select count(*) from routines;
|
select count(*) from routines;
|
||||||
count(*)
|
count(*)
|
||||||
1
|
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
|
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 1 Host A NULL NULL NULL BTREE
|
||||||
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
||||||
@@ -3153,6 +3224,14 @@ NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
|||||||
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||||
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
||||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 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 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 424 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql name 1 name A 424 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 901 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 479 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql name 1 name A 479 NULL NULL BTREE
|
||||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL 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 host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||||
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
||||||
@@ -3383,10 +3462,9 @@ NULL mysql PRIMARY NULL mysql user User 2 NULL NULL NULL NULL
|
|||||||
select count(*) as max_recs from key_column_usage;
|
select count(*) as max_recs from key_column_usage;
|
||||||
max_recs
|
max_recs
|
||||||
45
|
45
|
||||||
select max(cardinality) from statistics
|
select max(cardinality) from statistics;
|
||||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
|
||||||
max(cardinality)
|
max(cardinality)
|
||||||
393
|
901
|
||||||
select concat("View '",
|
select concat("View '",
|
||||||
table_name, "' is associated with the database '", table_schema, "'.")
|
table_name, "' is associated with the database '", table_schema, "'.")
|
||||||
AS "Who is Who for the Views"
|
AS "Who is Who for the Views"
|
||||||
@@ -4276,8 +4354,7 @@ CHECKSUM NULL
|
|||||||
CREATE_OPTIONS #CO#
|
CREATE_OPTIONS #CO#
|
||||||
TABLE_COMMENT
|
TABLE_COMMENT
|
||||||
SELECT * FROM information_schema.tables
|
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_CATALOG NULL
|
||||||
TABLE_SCHEMA db_datadict
|
TABLE_SCHEMA db_datadict
|
||||||
TABLE_NAME v1
|
TABLE_NAME v1
|
||||||
@@ -4448,6 +4525,90 @@ CREATE_OPTIONS
|
|||||||
TABLE_COMMENT General log
|
TABLE_COMMENT General log
|
||||||
TABLE_CATALOG NULL
|
TABLE_CATALOG NULL
|
||||||
TABLE_SCHEMA mysql
|
TABLE_SCHEMA mysql
|
||||||
|
TABLE_NAME help_category
|
||||||
|
TABLE_TYPE BASE TABLE
|
||||||
|
ENGINE MyISAM
|
||||||
|
VERSION 10
|
||||||
|
ROW_FORMAT Fixed
|
||||||
|
TABLE_ROWS 37
|
||||||
|
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 424
|
||||||
|
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 901
|
||||||
|
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 479
|
||||||
|
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_NAME host
|
||||||
TABLE_TYPE BASE TABLE
|
TABLE_TYPE BASE TABLE
|
||||||
ENGINE MyISAM
|
ENGINE MyISAM
|
||||||
@@ -5565,10 +5726,10 @@ COUNT(*)
|
|||||||
36
|
36
|
||||||
SELECT COUNT(*) FROM information_schema. collations ;
|
SELECT COUNT(*) FROM information_schema. collations ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
128
|
127
|
||||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
129
|
128
|
||||||
SELECT COUNT(*) FROM information_schema. routines ;
|
SELECT COUNT(*) FROM information_schema. routines ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
1
|
1
|
||||||
@@ -5645,10 +5806,10 @@ utf8_esperanto_ci utf8
|
|||||||
utf8_estonian_ci utf8
|
utf8_estonian_ci utf8
|
||||||
select routine_definition from routines;
|
select routine_definition from routines;
|
||||||
routine_definition
|
routine_definition
|
||||||
select * from statistics where table_name not like 'help_%'
|
select * from statistics group by index_name asc limit 0, 5;
|
||||||
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
|
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 procs_priv 1 mysql Grantor 1 Grantor A NULL NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL 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
|
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||||
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
||||||
@@ -5762,9 +5923,9 @@ NULL test latin1 latin1_swedish_ci NULL
|
|||||||
NULL test1 latin1 latin1_swedish_ci NULL
|
NULL test1 latin1 latin1_swedish_ci NULL
|
||||||
select distinct grantee from user_privileges;
|
select distinct grantee from user_privileges;
|
||||||
grantee
|
grantee
|
||||||
'root'@'127.0.0.1'
|
|
||||||
'root'@'<SERVER_NAME>'
|
|
||||||
'root'@'localhost'
|
'root'@'localhost'
|
||||||
|
'root'@'<SERVER_NAME>'
|
||||||
|
'root'@'127.0.0.1'
|
||||||
select all grantee from user_privileges order by grantee, privilege_type;
|
select all grantee from user_privileges order by grantee, privilege_type;
|
||||||
grantee
|
grantee
|
||||||
'root'@'127.0.0.1'
|
'root'@'127.0.0.1'
|
||||||
@@ -7714,7 +7875,7 @@ Testcase 3.2.1.14:
|
|||||||
DROP DATABASE IF EXISTS db_datadict;
|
DROP DATABASE IF EXISTS db_datadict;
|
||||||
CREATE DATABASE db_datadict;
|
CREATE DATABASE db_datadict;
|
||||||
USE db_datadict;
|
USE db_datadict;
|
||||||
create table res_t_401014(f1 char(10), f2 varchar(25), f3 int);
|
create table res_t_401014(f1 char(10), f2 text(25), f3 int);
|
||||||
create view res_v_401014 as select * from res_t_401014;
|
create view res_v_401014 as select * from res_t_401014;
|
||||||
create procedure sp_6_401014() select 'db_datadict';
|
create procedure sp_6_401014() select 'db_datadict';
|
||||||
create function fn_6_401014() returns int return 0;
|
create function fn_6_401014() returns int return 0;
|
||||||
@@ -7737,10 +7898,10 @@ from information_schema.columns
|
|||||||
where table_schema like 'db_datadict%';
|
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
|
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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) 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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) 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
|
select table_schema, table_name, is_updatable
|
||||||
from information_schema.views
|
from information_schema.views
|
||||||
@@ -7859,7 +8020,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 CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
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 CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
use db_datadict;
|
use db_datadict;
|
||||||
alter table res_t_401014 change f1 ff1 int;
|
alter table res_t_401014 change f1 ff1 int;
|
||||||
alter table res_t_401014 engine = MyISAM;
|
alter table res_t_401014 engine = innodb;
|
||||||
alter table res_t_401014 change f3 f3_new bigint;
|
alter table res_t_401014 change f3 f3_new bigint;
|
||||||
alter view res_v_401014 as select ff1 from res_t_401014;
|
alter view res_v_401014 as select ff1 from res_t_401014;
|
||||||
alter procedure sp_6_401014 sql security invoker;
|
alter procedure sp_6_401014 sql security invoker;
|
||||||
@@ -7877,14 +8038,14 @@ select table_catalog, table_schema, engine
|
|||||||
from information_schema.tables
|
from information_schema.tables
|
||||||
where table_schema like 'db_datadict%';
|
where table_schema like 'db_datadict%';
|
||||||
table_catalog table_schema engine
|
table_catalog table_schema engine
|
||||||
NULL db_datadict MyISAM
|
NULL db_datadict InnoDB
|
||||||
NULL db_datadict NULL
|
NULL db_datadict NULL
|
||||||
select *
|
select *
|
||||||
from information_schema.columns
|
from information_schema.columns
|
||||||
where table_schema like 'db_datadict%';
|
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
|
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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3_new 3 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(20) 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
|
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
|
select table_schema, table_name, is_updatable
|
||||||
@@ -8525,7 +8686,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@@ -9292,7 +9452,6 @@ utf8_roman_ci
|
|||||||
utf8_persian_ci
|
utf8_persian_ci
|
||||||
utf8_esperanto_ci
|
utf8_esperanto_ci
|
||||||
utf8_hungarian_ci
|
utf8_hungarian_ci
|
||||||
utf8_general_cs
|
|
||||||
ucs2_general_ci
|
ucs2_general_ci
|
||||||
ucs2_bin
|
ucs2_bin
|
||||||
ucs2_unicode_ci
|
ucs2_unicode_ci
|
||||||
@@ -9658,7 +9817,6 @@ utf8_roman_ci utf8 207 Yes 8
|
|||||||
utf8_persian_ci utf8 208 Yes 8
|
utf8_persian_ci utf8 208 Yes 8
|
||||||
utf8_esperanto_ci utf8 209 Yes 8
|
utf8_esperanto_ci utf8 209 Yes 8
|
||||||
utf8_hungarian_ci utf8 210 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_general_ci ucs2 35 Yes Yes 1
|
||||||
ucs2_bin ucs2 90 Yes 1
|
ucs2_bin ucs2 90 Yes 1
|
||||||
ucs2_unicode_ci ucs2 128 Yes 8
|
ucs2_unicode_ci ucs2 128 Yes 8
|
||||||
@@ -9822,7 +9980,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@@ -14077,7 +14234,7 @@ NULL information_schema TRIGGERS SYSTEM VIEW MyISAM 10 Dynamic NULL #ARL# #DL# #
|
|||||||
NULL information_schema USER_PRIVILEGES SYSTEM VIEW MEMORY 10 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 USER_PRIVILEGES SYSTEM VIEW MEMORY 10 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 10 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#
|
NULL information_schema VIEWS SYSTEM VIEW MyISAM 10 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
|
SELECT * FROM information_schema.tables
|
||||||
WHERE NOT( table_schema = 'information_schema') AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
WHERE NOT( table_schema = 'information_schema');
|
||||||
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
|
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 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
|
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
|
||||||
@@ -14088,6 +14245,10 @@ NULL mysql db BASE TABLE MyISAM 10 Fixed 3 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-
|
|||||||
NULL mysql event 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 Events
|
NULL mysql event 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 Events
|
||||||
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 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 general_log BASE TABLE CSV 10 Dynamic 1 #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 General log
|
NULL mysql general_log BASE TABLE CSV 10 Dynamic 1 #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 General log
|
||||||
|
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 37 #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 424 #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 901 #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 479 #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 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 ndb_binlog_index 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 latin1_swedish_ci NULL
|
NULL mysql ndb_binlog_index 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 latin1_swedish_ci NULL
|
||||||
NULL mysql plugin 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 MySQL plugins
|
NULL mysql plugin 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 MySQL plugins
|
||||||
@@ -14316,8 +14477,7 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_
|
|||||||
|
|
||||||
root@localhost db_datadict_2
|
root@localhost db_datadict_2
|
||||||
REVOKE SELECT ON db_datadict.tb_6_401402_1 FROM 'user_1'@'localhost';
|
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
|
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 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
|
NULL db_datadict tb_6_401402_1 1 db_datadict f2_ind 1 f2 A NULL NULL NULL YES BTREE
|
||||||
@@ -14339,6 +14499,14 @@ NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
|||||||
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||||
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
||||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 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 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 424 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql name 1 name A 424 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 901 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 479 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql name 1 name A 479 NULL NULL BTREE
|
||||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL 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 host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||||
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
||||||
|
@@ -81,6 +81,7 @@ BEGIN
|
|||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
||||||
@@ -92,6 +93,7 @@ CREATE PROCEDURE sp1(v1 char(20))
|
|||||||
BEGIN
|
BEGIN
|
||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
DROP USER 'user_1'@'localhost';
|
DROP USER 'user_1'@'localhost';
|
||||||
@@ -117,6 +119,7 @@ CREATE FUNCTION fn1(v1 int) returns int
|
|||||||
BEGIN
|
BEGIN
|
||||||
return v1;
|
return v1;
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
drop user 'user_1'@'localhost';
|
drop user 'user_1'@'localhost';
|
||||||
|
@@ -58,7 +58,6 @@ load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t11;
|
|||||||
|
|
||||||
Section 3.1.10 - CALL checks:
|
Section 3.1.10 - CALL checks:
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
USE db_storedproc;
|
|
||||||
|
|
||||||
Testcase 3.1.10.2 + 3.1.10.5:
|
Testcase 3.1.10.2 + 3.1.10.5:
|
||||||
-----------------------------
|
-----------------------------
|
||||||
@@ -95,6 +94,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
CALL sp31102();
|
CALL sp31102();
|
||||||
@@ -114,6 +114,7 @@ a` a` 1000-01-01 -5000 a` -5000
|
|||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
fn31105( 9 )
|
fn31105( 9 )
|
||||||
81
|
81
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
||||||
@@ -131,6 +132,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
DROP PROCEDURE sp31102;
|
DROP PROCEDURE sp31102;
|
||||||
|
@@ -10,9 +10,8 @@
|
|||||||
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
. *__datadict.test are started. This can be a result of showing e.g. maximum
|
||||||
. values of the number of rows of tables.
|
. values of the number of rows of tables.
|
||||||
.
|
.
|
||||||
. This .result file has been checked OK with Linux 5.0.48,
|
. This .result file has been checked OK with Linux 5.0.23-bk,
|
||||||
. build tree ChangeSet@1.2477.6.3, 2007-07-30
|
. ChangeSet@1.2211, 2006-06-28 10:11:43-07:00.
|
||||||
. except that the not fixed Bug#30020 causes a difference.
|
|
||||||
.
|
.
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -21,21 +20,11 @@ FIXME: There are subtests that are switched off due to known bugs:
|
|||||||
SELECT 1 AS "have_bug_11589";
|
SELECT 1 AS "have_bug_11589";
|
||||||
have_bug_11589
|
have_bug_11589
|
||||||
1
|
1
|
||||||
SELECT 1 AS "have_bug_30689";
|
|
||||||
have_bug_30689
|
|
||||||
1
|
|
||||||
|
|
||||||
There are some statements where the ps-protocol is switched off.
|
There are some statements where the ps-protocol is switched off.
|
||||||
This may come from the bug listed below, ir from other problems.
|
This may come from the bug listed below, ir from other problems.
|
||||||
Bug#11589: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
|
Bug#11589: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Selects on INFORMATION_SCHEMA.VIEWS present incomplete
|
|
||||||
content for the column VIEW_DEFINITION in cases where
|
|
||||||
the view selects(=is based) on an INFORMATION_SCHEMA table.
|
|
||||||
---> VIEWS vu and vu1
|
|
||||||
Bug#30689 Wrong content in I_S.VIEWS.VIEW_DEFINITION if VIEW is based on I_S
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
SET @NO_REFRESH = IF( '' = '', 0, 1);
|
SET @NO_REFRESH = IF( '' = '', 0, 1);
|
||||||
DROP DATABASE IF EXISTS test1;
|
DROP DATABASE IF EXISTS test1;
|
||||||
CREATE DATABASE test1;
|
CREATE DATABASE test1;
|
||||||
@@ -1074,8 +1063,7 @@ CHECKSUM NULL
|
|||||||
CREATE_OPTIONS #CO#
|
CREATE_OPTIONS #CO#
|
||||||
TABLE_COMMENT
|
TABLE_COMMENT
|
||||||
SELECT * FROM tables
|
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_CATALOG NULL
|
||||||
TABLE_SCHEMA db_datadict
|
TABLE_SCHEMA db_datadict
|
||||||
TABLE_NAME v1
|
TABLE_NAME v1
|
||||||
@@ -1246,6 +1234,90 @@ CREATE_OPTIONS
|
|||||||
TABLE_COMMENT General log
|
TABLE_COMMENT General log
|
||||||
TABLE_CATALOG NULL
|
TABLE_CATALOG NULL
|
||||||
TABLE_SCHEMA mysql
|
TABLE_SCHEMA mysql
|
||||||
|
TABLE_NAME help_category
|
||||||
|
TABLE_TYPE BASE TABLE
|
||||||
|
ENGINE MyISAM
|
||||||
|
VERSION 10
|
||||||
|
ROW_FORMAT Fixed
|
||||||
|
TABLE_ROWS 37
|
||||||
|
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 424
|
||||||
|
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 901
|
||||||
|
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 479
|
||||||
|
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_NAME host
|
||||||
TABLE_TYPE BASE TABLE
|
TABLE_TYPE BASE TABLE
|
||||||
ENGINE MyISAM
|
ENGINE MyISAM
|
||||||
@@ -3194,7 +3266,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||||||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||||
select sum(id) from collations;
|
select sum(id) from collations;
|
||||||
sum(id)
|
sum(id)
|
||||||
11094
|
10840
|
||||||
select collation_name, character_set_name into @x,@y
|
select collation_name, character_set_name into @x,@y
|
||||||
from collation_character_set_applicability limit 1;
|
from collation_character_set_applicability limit 1;
|
||||||
select @x, @y;
|
select @x, @y;
|
||||||
@@ -3208,8 +3280,7 @@ END NULL NULL SQL NO CONTAINS SQL NULL DEFINER YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh
|
|||||||
select count(*) from routines;
|
select count(*) from routines;
|
||||||
count(*)
|
count(*)
|
||||||
1
|
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
|
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 1 Host A NULL NULL NULL BTREE
|
||||||
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
NULL mysql columns_priv 0 mysql PRIMARY 2 Db A NULL NULL NULL BTREE
|
||||||
@@ -3223,6 +3294,14 @@ NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
|||||||
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||||
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
||||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 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 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 424 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql name 1 name A 424 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 901 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 479 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql name 1 name A 479 NULL NULL BTREE
|
||||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL 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 host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||||
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
||||||
@@ -3453,10 +3532,9 @@ NULL mysql PRIMARY NULL mysql user User 2 NULL NULL NULL NULL
|
|||||||
select count(*) as max_recs from key_column_usage;
|
select count(*) as max_recs from key_column_usage;
|
||||||
max_recs
|
max_recs
|
||||||
45
|
45
|
||||||
select max(cardinality) from statistics
|
select max(cardinality) from statistics;
|
||||||
where not (table_schema = 'mysql' and table_name like 'help_%');
|
|
||||||
max(cardinality)
|
max(cardinality)
|
||||||
393
|
901
|
||||||
select concat("View '",
|
select concat("View '",
|
||||||
table_name, "' is associated with the database '", table_schema, "'.")
|
table_name, "' is associated with the database '", table_schema, "'.")
|
||||||
AS "Who is Who for the Views"
|
AS "Who is Who for the Views"
|
||||||
@@ -4346,8 +4424,7 @@ CHECKSUM NULL
|
|||||||
CREATE_OPTIONS #CO#
|
CREATE_OPTIONS #CO#
|
||||||
TABLE_COMMENT
|
TABLE_COMMENT
|
||||||
SELECT * FROM information_schema.tables
|
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_CATALOG NULL
|
||||||
TABLE_SCHEMA db_datadict
|
TABLE_SCHEMA db_datadict
|
||||||
TABLE_NAME v1
|
TABLE_NAME v1
|
||||||
@@ -4518,6 +4595,90 @@ CREATE_OPTIONS
|
|||||||
TABLE_COMMENT General log
|
TABLE_COMMENT General log
|
||||||
TABLE_CATALOG NULL
|
TABLE_CATALOG NULL
|
||||||
TABLE_SCHEMA mysql
|
TABLE_SCHEMA mysql
|
||||||
|
TABLE_NAME help_category
|
||||||
|
TABLE_TYPE BASE TABLE
|
||||||
|
ENGINE MyISAM
|
||||||
|
VERSION 10
|
||||||
|
ROW_FORMAT Fixed
|
||||||
|
TABLE_ROWS 37
|
||||||
|
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 424
|
||||||
|
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 901
|
||||||
|
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 479
|
||||||
|
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_NAME host
|
||||||
TABLE_TYPE BASE TABLE
|
TABLE_TYPE BASE TABLE
|
||||||
ENGINE MyISAM
|
ENGINE MyISAM
|
||||||
@@ -5635,10 +5796,10 @@ COUNT(*)
|
|||||||
36
|
36
|
||||||
SELECT COUNT(*) FROM information_schema. collations ;
|
SELECT COUNT(*) FROM information_schema. collations ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
128
|
127
|
||||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
129
|
128
|
||||||
SELECT COUNT(*) FROM information_schema. routines ;
|
SELECT COUNT(*) FROM information_schema. routines ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
1
|
1
|
||||||
@@ -5715,10 +5876,10 @@ utf8_esperanto_ci utf8
|
|||||||
utf8_estonian_ci utf8
|
utf8_estonian_ci utf8
|
||||||
select routine_definition from routines;
|
select routine_definition from routines;
|
||||||
routine_definition
|
routine_definition
|
||||||
select * from statistics where table_name not like 'help_%'
|
select * from statistics group by index_name asc limit 0, 5;
|
||||||
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
|
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 procs_priv 1 mysql Grantor 1 Grantor A NULL NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
NULL mysql columns_priv 0 mysql PRIMARY 1 Host A NULL 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
|
NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
||||||
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
select concat(table_schema, ', ', table_name, ', ', view_definition) view_info
|
||||||
@@ -5832,9 +5993,9 @@ NULL test latin1 latin1_swedish_ci NULL
|
|||||||
NULL test1 latin1 latin1_swedish_ci NULL
|
NULL test1 latin1 latin1_swedish_ci NULL
|
||||||
select distinct grantee from user_privileges;
|
select distinct grantee from user_privileges;
|
||||||
grantee
|
grantee
|
||||||
'root'@'127.0.0.1'
|
|
||||||
'root'@'<SERVER_NAME>'
|
|
||||||
'root'@'localhost'
|
'root'@'localhost'
|
||||||
|
'root'@'<SERVER_NAME>'
|
||||||
|
'root'@'127.0.0.1'
|
||||||
select all grantee from user_privileges order by grantee, privilege_type;
|
select all grantee from user_privileges order by grantee, privilege_type;
|
||||||
grantee
|
grantee
|
||||||
'root'@'127.0.0.1'
|
'root'@'127.0.0.1'
|
||||||
@@ -7784,7 +7945,7 @@ Testcase 3.2.1.14:
|
|||||||
DROP DATABASE IF EXISTS db_datadict;
|
DROP DATABASE IF EXISTS db_datadict;
|
||||||
CREATE DATABASE db_datadict;
|
CREATE DATABASE db_datadict;
|
||||||
USE db_datadict;
|
USE db_datadict;
|
||||||
create table res_t_401014(f1 char(10), f2 varchar(25), f3 int);
|
create table res_t_401014(f1 char(10), f2 text(25), f3 int);
|
||||||
create view res_v_401014 as select * from res_t_401014;
|
create view res_v_401014 as select * from res_t_401014;
|
||||||
create procedure sp_6_401014() select 'db_datadict';
|
create procedure sp_6_401014() select 'db_datadict';
|
||||||
create function fn_6_401014() returns int return 0;
|
create function fn_6_401014() returns int return 0;
|
||||||
@@ -7807,10 +7968,10 @@ from information_schema.columns
|
|||||||
where table_schema like 'db_datadict%';
|
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
|
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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) 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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) 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
|
select table_schema, table_name, is_updatable
|
||||||
from information_schema.views
|
from information_schema.views
|
||||||
@@ -7929,7 +8090,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 CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
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 CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
use db_datadict;
|
use db_datadict;
|
||||||
alter table res_t_401014 change f1 ff1 int;
|
alter table res_t_401014 change f1 ff1 int;
|
||||||
alter table res_t_401014 engine = MEMORY;
|
alter table res_t_401014 engine = innodb;
|
||||||
alter table res_t_401014 change f3 f3_new bigint;
|
alter table res_t_401014 change f3 f3_new bigint;
|
||||||
alter view res_v_401014 as select ff1 from res_t_401014;
|
alter view res_v_401014 as select ff1 from res_t_401014;
|
||||||
alter procedure sp_6_401014 sql security invoker;
|
alter procedure sp_6_401014 sql security invoker;
|
||||||
@@ -7947,14 +8108,14 @@ select table_catalog, table_schema, engine
|
|||||||
from information_schema.tables
|
from information_schema.tables
|
||||||
where table_schema like 'db_datadict%';
|
where table_schema like 'db_datadict%';
|
||||||
table_catalog table_schema engine
|
table_catalog table_schema engine
|
||||||
NULL db_datadict MEMORY
|
NULL db_datadict InnoDB
|
||||||
NULL db_datadict NULL
|
NULL db_datadict NULL
|
||||||
select *
|
select *
|
||||||
from information_schema.columns
|
from information_schema.columns
|
||||||
where table_schema like 'db_datadict%';
|
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
|
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 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 varchar 25 25 NULL NULL latin1 latin1_swedish_ci varchar(25) 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 f3_new 3 NULL YES bigint NULL NULL 19 0 NULL NULL bigint(20) 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
|
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
|
select table_schema, table_name, is_updatable
|
||||||
@@ -8595,7 +8756,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@@ -9394,7 +9554,6 @@ utf8_roman_ci
|
|||||||
utf8_persian_ci
|
utf8_persian_ci
|
||||||
utf8_esperanto_ci
|
utf8_esperanto_ci
|
||||||
utf8_hungarian_ci
|
utf8_hungarian_ci
|
||||||
utf8_general_cs
|
|
||||||
ucs2_general_ci
|
ucs2_general_ci
|
||||||
ucs2_bin
|
ucs2_bin
|
||||||
ucs2_unicode_ci
|
ucs2_unicode_ci
|
||||||
@@ -9760,7 +9919,6 @@ utf8_roman_ci utf8 207 Yes 8
|
|||||||
utf8_persian_ci utf8 208 Yes 8
|
utf8_persian_ci utf8 208 Yes 8
|
||||||
utf8_esperanto_ci utf8 209 Yes 8
|
utf8_esperanto_ci utf8 209 Yes 8
|
||||||
utf8_hungarian_ci utf8 210 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_general_ci ucs2 35 Yes Yes 1
|
||||||
ucs2_bin ucs2 90 Yes 1
|
ucs2_bin ucs2 90 Yes 1
|
||||||
ucs2_unicode_ci ucs2 128 Yes 8
|
ucs2_unicode_ci ucs2 128 Yes 8
|
||||||
@@ -9924,7 +10082,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@@ -14331,7 +14488,7 @@ NULL information_schema TRIGGERS SYSTEM VIEW MyISAM 10 Dynamic NULL #ARL# #DL# #
|
|||||||
NULL information_schema USER_PRIVILEGES SYSTEM VIEW MEMORY 10 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 USER_PRIVILEGES SYSTEM VIEW MEMORY 10 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 10 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#
|
NULL information_schema VIEWS SYSTEM VIEW MyISAM 10 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
|
SELECT * FROM information_schema.tables
|
||||||
WHERE NOT( table_schema = 'information_schema') AND NOT (table_schema = 'mysql' AND table_name LIKE 'help_%');
|
WHERE NOT( table_schema = 'information_schema');
|
||||||
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
|
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 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
|
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
|
||||||
@@ -14342,6 +14499,10 @@ NULL mysql db BASE TABLE MyISAM 10 Fixed 3 #ARL# #DL# #MDL# #IL# #DF# NULL YYYY-
|
|||||||
NULL mysql event 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 Events
|
NULL mysql event 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 Events
|
||||||
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 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 general_log BASE TABLE CSV 10 Dynamic 1 #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 General log
|
NULL mysql general_log BASE TABLE CSV 10 Dynamic 1 #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 General log
|
||||||
|
NULL mysql help_category BASE TABLE MyISAM 10 Fixed 37 #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 424 #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 901 #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 479 #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 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 ndb_binlog_index 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 latin1_swedish_ci NULL
|
NULL mysql ndb_binlog_index 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 latin1_swedish_ci NULL
|
||||||
NULL mysql plugin 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 MySQL plugins
|
NULL mysql plugin 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 MySQL plugins
|
||||||
@@ -14570,8 +14731,7 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_
|
|||||||
|
|
||||||
root@localhost db_datadict_2
|
root@localhost db_datadict_2
|
||||||
REVOKE SELECT ON db_datadict.tb_6_401402_1 FROM 'user_1'@'localhost';
|
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
|
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 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
|
NULL db_datadict tb_6_401402_1 1 db_datadict f2_ind 1 f2 A NULL NULL NULL YES BTREE
|
||||||
@@ -14593,6 +14753,14 @@ NULL mysql db 1 mysql User 1 User A 1 NULL NULL BTREE
|
|||||||
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 1 db A NULL NULL NULL BTREE
|
||||||
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
NULL mysql event 0 mysql PRIMARY 2 name A 0 NULL NULL BTREE
|
||||||
NULL mysql func 0 mysql PRIMARY 1 name A 0 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 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_category 0 mysql name 1 name A 37 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql PRIMARY 1 help_keyword_id A 424 NULL NULL BTREE
|
||||||
|
NULL mysql help_keyword 0 mysql name 1 name A 424 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 901 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql PRIMARY 1 help_topic_id A 479 NULL NULL BTREE
|
||||||
|
NULL mysql help_topic 0 mysql name 1 name A 479 NULL NULL BTREE
|
||||||
NULL mysql host 0 mysql PRIMARY 1 Host A NULL 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 host 0 mysql PRIMARY 2 Db A 0 NULL NULL BTREE
|
||||||
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
NULL mysql ndb_binlog_index 0 mysql PRIMARY 1 epoch A 0 NULL NULL BTREE
|
||||||
|
@@ -81,6 +81,7 @@ BEGIN
|
|||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
||||||
@@ -92,6 +93,7 @@ CREATE PROCEDURE sp1(v1 char(20))
|
|||||||
BEGIN
|
BEGIN
|
||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
DROP USER 'user_1'@'localhost';
|
DROP USER 'user_1'@'localhost';
|
||||||
@@ -117,6 +119,7 @@ CREATE FUNCTION fn1(v1 int) returns int
|
|||||||
BEGIN
|
BEGIN
|
||||||
return v1;
|
return v1;
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
drop user 'user_1'@'localhost';
|
drop user 'user_1'@'localhost';
|
||||||
|
@@ -58,7 +58,6 @@ load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t11;
|
|||||||
|
|
||||||
Section 3.1.10 - CALL checks:
|
Section 3.1.10 - CALL checks:
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
USE db_storedproc;
|
|
||||||
|
|
||||||
Testcase 3.1.10.2 + 3.1.10.5:
|
Testcase 3.1.10.2 + 3.1.10.5:
|
||||||
-----------------------------
|
-----------------------------
|
||||||
@@ -95,6 +94,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
CALL sp31102();
|
CALL sp31102();
|
||||||
@@ -114,6 +114,7 @@ a` a` 1000-01-01 -5000 a` -5000
|
|||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
fn31105( 9 )
|
fn31105( 9 )
|
||||||
81
|
81
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
||||||
@@ -131,6 +132,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
DROP PROCEDURE sp31102;
|
DROP PROCEDURE sp31102;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -81,6 +81,7 @@ BEGIN
|
|||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
ERROR 42000: Access denied for user 'user_1'@'localhost' to database 'db_storedproc_1'
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
||||||
@@ -92,6 +93,7 @@ CREATE PROCEDURE sp1(v1 char(20))
|
|||||||
BEGIN
|
BEGIN
|
||||||
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
DROP USER 'user_1'@'localhost';
|
DROP USER 'user_1'@'localhost';
|
||||||
@@ -117,6 +119,7 @@ CREATE FUNCTION fn1(v1 int) returns int
|
|||||||
BEGIN
|
BEGIN
|
||||||
return v1;
|
return v1;
|
||||||
END//
|
END//
|
||||||
|
USE db_storedproc_1;
|
||||||
|
|
||||||
root@localhost db_storedproc_1
|
root@localhost db_storedproc_1
|
||||||
drop user 'user_1'@'localhost';
|
drop user 'user_1'@'localhost';
|
||||||
|
@@ -58,7 +58,6 @@ load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t11;
|
|||||||
|
|
||||||
Section 3.1.10 - CALL checks:
|
Section 3.1.10 - CALL checks:
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
USE db_storedproc;
|
|
||||||
|
|
||||||
Testcase 3.1.10.2 + 3.1.10.5:
|
Testcase 3.1.10.2 + 3.1.10.5:
|
||||||
-----------------------------
|
-----------------------------
|
||||||
@@ -95,6 +94,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
CALL sp31102();
|
CALL sp31102();
|
||||||
@@ -114,6 +114,7 @@ a` a` 1000-01-01 -5000 a` -5000
|
|||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
fn31105( 9 )
|
fn31105( 9 )
|
||||||
81
|
81
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
||||||
@@ -131,6 +132,7 @@ CALL sp31102();
|
|||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.sp31102'
|
||||||
SELECT fn31105( 9 );
|
SELECT fn31105( 9 );
|
||||||
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
ERROR 42000: execute command denied to user 'user_2'@'localhost' for routine 'db_storedproc.fn31105'
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
root@localhost db_storedproc
|
root@localhost db_storedproc
|
||||||
DROP PROCEDURE sp31102;
|
DROP PROCEDURE sp31102;
|
||||||
|
@@ -18,9 +18,9 @@
|
|||||||
let $message= Section 3.1.6 - Privilege Checks:;
|
let $message= Section 3.1.6 - Privilege Checks:;
|
||||||
--source include/show_msg80.inc
|
--source include/show_msg80.inc
|
||||||
|
|
||||||
USE db_storedproc_1;
|
|
||||||
|
|
||||||
connection default;
|
connection default;
|
||||||
|
USE db_storedproc_1;
|
||||||
--source suite/funcs_1/include/show_connection.inc
|
--source suite/funcs_1/include/show_connection.inc
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
@@ -58,6 +58,7 @@ disconnect user1a;
|
|||||||
|
|
||||||
# add privilege again and check
|
# add privilege again and check
|
||||||
connection default;
|
connection default;
|
||||||
|
USE db_storedproc_1;
|
||||||
--source suite/funcs_1/include/show_connection.inc
|
--source suite/funcs_1/include/show_connection.inc
|
||||||
|
|
||||||
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
|
||||||
@@ -77,6 +78,7 @@ disconnect user1b;
|
|||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
connection default;
|
connection default;
|
||||||
|
USE db_storedproc_1;
|
||||||
--source suite/funcs_1/include/show_connection.inc
|
--source suite/funcs_1/include/show_connection.inc
|
||||||
|
|
||||||
DROP USER 'user_1'@'localhost';
|
DROP USER 'user_1'@'localhost';
|
||||||
@@ -132,6 +134,7 @@ disconnect user2;
|
|||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
connection default;
|
connection default;
|
||||||
|
USE db_storedproc_1;
|
||||||
--source suite/funcs_1/include/show_connection.inc
|
--source suite/funcs_1/include/show_connection.inc
|
||||||
|
|
||||||
drop user 'user_1'@'localhost';
|
drop user 'user_1'@'localhost';
|
||||||
|
@@ -21,7 +21,6 @@ let $message= Section 3.1.10 - CALL checks:;
|
|||||||
--source include/show_msg80.inc
|
--source include/show_msg80.inc
|
||||||
|
|
||||||
|
|
||||||
USE db_storedproc;
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
let $message= Testcase 3.1.10.2 + 3.1.10.5:;
|
let $message= Testcase 3.1.10.2 + 3.1.10.5:;
|
||||||
@@ -80,6 +79,7 @@ SELECT fn31105( 9 );
|
|||||||
|
|
||||||
# now 'add' EXECUTE to INVOKER
|
# now 'add' EXECUTE to INVOKER
|
||||||
connection default;
|
connection default;
|
||||||
|
USE db_storedproc;
|
||||||
--source suite/funcs_1/include/show_connection.inc
|
--source suite/funcs_1/include/show_connection.inc
|
||||||
# root can execute ...
|
# root can execute ...
|
||||||
CALL sp31102();
|
CALL sp31102();
|
||||||
@@ -98,6 +98,7 @@ disconnect user2_3;
|
|||||||
|
|
||||||
# now 'remove' SELECT from INVOKER
|
# now 'remove' SELECT from INVOKER
|
||||||
connection default;
|
connection default;
|
||||||
|
USE db_storedproc;
|
||||||
--source suite/funcs_1/include/show_connection.inc
|
--source suite/funcs_1/include/show_connection.inc
|
||||||
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
REVOKE EXECUTE ON db_storedproc.* FROM 'user_2'@'localhost';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
@@ -115,6 +116,7 @@ disconnect user2_4;
|
|||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
connection default;
|
connection default;
|
||||||
|
USE db_storedproc;
|
||||||
|
|
||||||
--source suite/funcs_1/include/show_connection.inc
|
--source suite/funcs_1/include/show_connection.inc
|
||||||
DROP PROCEDURE sp31102;
|
DROP PROCEDURE sp31102;
|
||||||
|
167
mysql-test/suite/rpl/r/rpl_innodb_bug28430.result
Normal file
167
mysql-test/suite/rpl/r/rpl_innodb_bug28430.result
Normal file
@@ -0,0 +1,167 @@
|
|||||||
|
stop slave;
|
||||||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
|
reset master;
|
||||||
|
reset slave;
|
||||||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
|
start slave;
|
||||||
|
use test;
|
||||||
|
CREATE TABLE test.regular_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE='innodb';
|
||||||
|
CREATE TABLE test.bykey_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE='innodb'
|
||||||
|
PARTITION BY KEY(id) partitions 5;
|
||||||
|
CREATE TABLE test.byrange_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE='innodb'
|
||||||
|
PARTITION BY RANGE(id)
|
||||||
|
SUBPARTITION BY hash(id) subpartitions 2
|
||||||
|
(PARTITION pa1 values less than (10),
|
||||||
|
PARTITION pa2 values less than (20),
|
||||||
|
PARTITION pa3 values less than (30),
|
||||||
|
PARTITION pa4 values less than (40),
|
||||||
|
PARTITION pa5 values less than (50),
|
||||||
|
PARTITION pa6 values less than (60),
|
||||||
|
PARTITION pa7 values less than (70),
|
||||||
|
PARTITION pa8 values less than (80),
|
||||||
|
PARTITION pa9 values less than (90),
|
||||||
|
PARTITION pa10 values less than (100),
|
||||||
|
PARTITION pa11 values less than MAXVALUE);
|
||||||
|
CREATE PROCEDURE test.proc_norm()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user= CURRENT_USER();
|
||||||
|
SET local_uuid= UUID();
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.regular_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
SELECT MAX(id) FROM test.regular_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.regular_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
CREATE PROCEDURE test.proc_bykey()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user= CURRENT_USER();
|
||||||
|
SET local_uuid= UUID();
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.bykey_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
SELECT MAX(id) FROM test.bykey_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.bykey_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
CREATE PROCEDURE test.proc_byrange()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user = CURRENT_USER();
|
||||||
|
SET local_uuid=UUID();
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.byrange_tbl VALUES (NULL, NOW(), USER(), UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
SELECT MAX(id) FROM test.byrange_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.byrange_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
CALL test.proc_norm();
|
||||||
|
SELECT count(*) as "Master regular" FROM test.regular_tbl;
|
||||||
|
Master regular 500
|
||||||
|
CALL test.proc_bykey();
|
||||||
|
SELECT count(*) as "Master bykey" FROM test.bykey_tbl;
|
||||||
|
Master bykey 500
|
||||||
|
CALL test.proc_byrange();
|
||||||
|
SELECT count(*) as "Master byrange" FROM test.byrange_tbl;
|
||||||
|
Master byrange 500
|
||||||
|
show create table test.byrange_tbl;
|
||||||
|
Table byrange_tbl
|
||||||
|
Create Table CREATE TABLE `byrange_tbl` (
|
||||||
|
`id` mediumint(9) NOT NULL AUTO_INCREMENT,
|
||||||
|
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
|
`user` char(255) DEFAULT NULL,
|
||||||
|
`uuidf` longblob,
|
||||||
|
`fkid` mediumint(9) DEFAULT NULL,
|
||||||
|
`filler` varchar(255) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (id) SUBPARTITION BY HASH (id) SUBPARTITIONS 2 (PARTITION pa1 VALUES LESS THAN (10) ENGINE = InnoDB, PARTITION pa2 VALUES LESS THAN (20) ENGINE = InnoDB, PARTITION pa3 VALUES LESS THAN (30) ENGINE = InnoDB, PARTITION pa4 VALUES LESS THAN (40) ENGINE = InnoDB, PARTITION pa5 VALUES LESS THAN (50) ENGINE = InnoDB, PARTITION pa6 VALUES LESS THAN (60) ENGINE = InnoDB, PARTITION pa7 VALUES LESS THAN (70) ENGINE = InnoDB, PARTITION pa8 VALUES LESS THAN (80) ENGINE = InnoDB, PARTITION pa9 VALUES LESS THAN (90) ENGINE = InnoDB, PARTITION pa10 VALUES LESS THAN (100) ENGINE = InnoDB, PARTITION pa11 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */
|
||||||
|
show slave status;
|
||||||
|
Slave_IO_State Waiting for master to send event
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port MASTER_PORT
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos 945470
|
||||||
|
Relay_Log_File slave-relay-bin.000003
|
||||||
|
Relay_Log_Pos 945616
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running Yes
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 0
|
||||||
|
Last_Error
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos 945470
|
||||||
|
Relay_Log_Space 945771
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno 0
|
||||||
|
Last_IO_Error
|
||||||
|
Last_SQL_Errno 0
|
||||||
|
Last_SQL_Error
|
||||||
|
SELECT count(*) "Slave norm" FROM test.regular_tbl;
|
||||||
|
Slave norm 500
|
||||||
|
SELECT count(*) "Slave bykey" FROM test.bykey_tbl;
|
||||||
|
Slave bykey 500
|
||||||
|
SELECT count(*) "Slave byrange" FROM test.byrange_tbl;
|
||||||
|
Slave byrange 500
|
||||||
|
DROP PROCEDURE test.proc_norm;
|
||||||
|
DROP PROCEDURE test.proc_bykey;
|
||||||
|
DROP PROCEDURE test.proc_byrange;
|
||||||
|
DROP TABLE test.regular_tbl;
|
||||||
|
DROP TABLE test.bykey_tbl;
|
||||||
|
DROP TABLE test.byrange_tbl;
|
35
mysql-test/suite/rpl/r/rpl_innodb_bug30888.result
Normal file
35
mysql-test/suite/rpl/r/rpl_innodb_bug30888.result
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
stop slave;
|
||||||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
|
reset master;
|
||||||
|
reset slave;
|
||||||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
|
start slave;
|
||||||
|
use test;
|
||||||
|
CREATE TABLE test.regular_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE='innodb';
|
||||||
|
CREATE PROCEDURE test.proc_norm()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user= CURRENT_USER();
|
||||||
|
SET local_uuid= UUID();
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.regular_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
SELECT MAX(id) FROM test.regular_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.regular_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
CALL test.proc_norm();
|
||||||
|
DROP PROCEDURE test.proc_norm;
|
||||||
|
DROP TABLE test.regular_tbl;
|
1043
mysql-test/suite/rpl/r/rpl_innodb_bug30919.result
Normal file
1043
mysql-test/suite/rpl/r/rpl_innodb_bug30919.result
Normal file
File diff suppressed because it is too large
Load Diff
1
mysql-test/suite/rpl/t/rpl_innodb-master.opt
Normal file
1
mysql-test/suite/rpl/t/rpl_innodb-master.opt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--innodb --innodb_autoinc_lock_mode=0
|
1
mysql-test/suite/rpl/t/rpl_innodb_bug28430-master.opt
Normal file
1
mysql-test/suite/rpl/t/rpl_innodb_bug28430-master.opt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--innodb --innodb_autoinc_lock_mode=0
|
1
mysql-test/suite/rpl/t/rpl_innodb_bug28430-slave.opt
Normal file
1
mysql-test/suite/rpl/t/rpl_innodb_bug28430-slave.opt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--innodb --innodb_autoinc_lock_mode=0
|
154
mysql-test/suite/rpl/t/rpl_innodb_bug28430.test
Normal file
154
mysql-test/suite/rpl/t/rpl_innodb_bug28430.test
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
--source include/have_innodb.inc
|
||||||
|
--source include/have_binlog_format_mixed_or_row.inc
|
||||||
|
--source include/master-slave.inc
|
||||||
|
|
||||||
|
# Set the default connection to 'master'
|
||||||
|
|
||||||
|
--vertical_results
|
||||||
|
|
||||||
|
let $engine_type= 'innodb';
|
||||||
|
|
||||||
|
######## Creat Table Section #########
|
||||||
|
use test;
|
||||||
|
|
||||||
|
eval CREATE TABLE test.regular_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE=$engine_type;
|
||||||
|
|
||||||
|
eval CREATE TABLE test.bykey_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE=$engine_type
|
||||||
|
PARTITION BY KEY(id) partitions 5;
|
||||||
|
|
||||||
|
eval CREATE TABLE test.byrange_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE=$engine_type
|
||||||
|
PARTITION BY RANGE(id)
|
||||||
|
SUBPARTITION BY hash(id) subpartitions 2
|
||||||
|
(PARTITION pa1 values less than (10),
|
||||||
|
PARTITION pa2 values less than (20),
|
||||||
|
PARTITION pa3 values less than (30),
|
||||||
|
PARTITION pa4 values less than (40),
|
||||||
|
PARTITION pa5 values less than (50),
|
||||||
|
PARTITION pa6 values less than (60),
|
||||||
|
PARTITION pa7 values less than (70),
|
||||||
|
PARTITION pa8 values less than (80),
|
||||||
|
PARTITION pa9 values less than (90),
|
||||||
|
PARTITION pa10 values less than (100),
|
||||||
|
PARTITION pa11 values less than MAXVALUE);
|
||||||
|
|
||||||
|
######## Create SPs, Functions, Views and Triggers Section ##############
|
||||||
|
|
||||||
|
delimiter |;
|
||||||
|
CREATE PROCEDURE test.proc_norm()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user= CURRENT_USER();
|
||||||
|
SET local_uuid= UUID();
|
||||||
|
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.regular_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
|
||||||
|
SELECT MAX(id) FROM test.regular_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.regular_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
|
||||||
|
CREATE PROCEDURE test.proc_bykey()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user= CURRENT_USER();
|
||||||
|
SET local_uuid= UUID();
|
||||||
|
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.bykey_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
|
||||||
|
SELECT MAX(id) FROM test.bykey_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.bykey_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
|
||||||
|
CREATE PROCEDURE test.proc_byrange()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user = CURRENT_USER();
|
||||||
|
SET local_uuid=UUID();
|
||||||
|
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.byrange_tbl VALUES (NULL, NOW(), USER(), UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
|
||||||
|
SELECT MAX(id) FROM test.byrange_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.byrange_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
|
||||||
|
delimiter ;|
|
||||||
|
|
||||||
|
############ Finish Setup Section ###################
|
||||||
|
|
||||||
|
|
||||||
|
############ Test Section ###################
|
||||||
|
|
||||||
|
CALL test.proc_norm();
|
||||||
|
SELECT count(*) as "Master regular" FROM test.regular_tbl;
|
||||||
|
CALL test.proc_bykey();
|
||||||
|
SELECT count(*) as "Master bykey" FROM test.bykey_tbl;
|
||||||
|
CALL test.proc_byrange();
|
||||||
|
SELECT count(*) as "Master byrange" FROM test.byrange_tbl;
|
||||||
|
|
||||||
|
--sync_slave_with_master
|
||||||
|
connection slave;
|
||||||
|
show create table test.byrange_tbl;
|
||||||
|
--replace_column 4 MASTER_PORT 33 #
|
||||||
|
show slave status;
|
||||||
|
SELECT count(*) "Slave norm" FROM test.regular_tbl;
|
||||||
|
SELECT count(*) "Slave bykey" FROM test.bykey_tbl;
|
||||||
|
SELECT count(*) "Slave byrange" FROM test.byrange_tbl;
|
||||||
|
|
||||||
|
###### CLEAN UP SECTION ##############
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
DROP PROCEDURE test.proc_norm;
|
||||||
|
DROP PROCEDURE test.proc_bykey;
|
||||||
|
DROP PROCEDURE test.proc_byrange;
|
||||||
|
DROP TABLE test.regular_tbl;
|
||||||
|
DROP TABLE test.bykey_tbl;
|
||||||
|
DROP TABLE test.byrange_tbl;
|
||||||
|
|
||||||
|
--source include/master-slave-end.inc
|
66
mysql-test/suite/rpl/t/rpl_innodb_bug30888.test
Normal file
66
mysql-test/suite/rpl/t/rpl_innodb_bug30888.test
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
--source include/have_innodb.inc
|
||||||
|
--source include/have_binlog_format_mixed_or_row.inc
|
||||||
|
--source include/master-slave.inc
|
||||||
|
|
||||||
|
# Set the default connection to 'master'
|
||||||
|
|
||||||
|
--vertical_results
|
||||||
|
|
||||||
|
#let $engine_type= 'myisam';
|
||||||
|
let $engine_type= 'innodb';
|
||||||
|
|
||||||
|
######## Creat Table Section #########
|
||||||
|
use test;
|
||||||
|
|
||||||
|
eval CREATE TABLE test.regular_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE=$engine_type;
|
||||||
|
|
||||||
|
######## Create SPs, Functions, Views and Triggers Section ##############
|
||||||
|
|
||||||
|
delimiter |;
|
||||||
|
CREATE PROCEDURE test.proc_norm()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user= CURRENT_USER();
|
||||||
|
SET local_uuid= UUID();
|
||||||
|
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.regular_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
|
||||||
|
SELECT MAX(id) FROM test.regular_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.regular_tbl WHERE id = del_count;
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
|
||||||
|
delimiter ;|
|
||||||
|
|
||||||
|
############ Finish Setup Section ###################
|
||||||
|
|
||||||
|
|
||||||
|
############ Test Section ###################
|
||||||
|
|
||||||
|
CALL test.proc_norm();
|
||||||
|
|
||||||
|
--sync_slave_with_master
|
||||||
|
|
||||||
|
###### CLEAN UP SECTION ##############
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
DROP PROCEDURE test.proc_norm;
|
||||||
|
DROP TABLE test.regular_tbl;
|
||||||
|
|
||||||
|
--source include/master-slave-end.inc
|
||||||
|
|
1
mysql-test/suite/rpl/t/rpl_innodb_bug30919-master.opt
Normal file
1
mysql-test/suite/rpl/t/rpl_innodb_bug30919-master.opt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--innodb --innodb_autoinc_lock_mode=0
|
67
mysql-test/suite/rpl/t/rpl_innodb_bug30919.test
Normal file
67
mysql-test/suite/rpl/t/rpl_innodb_bug30919.test
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
--source include/have_innodb.inc
|
||||||
|
--vertical_results
|
||||||
|
let $engine_type= 'innodb';
|
||||||
|
|
||||||
|
######## Creat Table Section #########
|
||||||
|
use test;
|
||||||
|
|
||||||
|
eval CREATE TABLE test.part_tbl(id MEDIUMINT NOT NULL AUTO_INCREMENT,
|
||||||
|
dt TIMESTAMP, user CHAR(255), uuidf LONGBLOB,
|
||||||
|
fkid MEDIUMINT, filler VARCHAR(255),
|
||||||
|
PRIMARY KEY(id)) ENGINE=$engine_type
|
||||||
|
PARTITION BY RANGE(id)
|
||||||
|
SUBPARTITION BY hash(id) subpartitions 2
|
||||||
|
(PARTITION pa3 values less than (42),
|
||||||
|
PARTITION pa6 values less than (60),
|
||||||
|
PARTITION pa7 values less than (70),
|
||||||
|
PARTITION pa8 values less than (80),
|
||||||
|
PARTITION pa9 values less than (90),
|
||||||
|
PARTITION pa10 values less than (100),
|
||||||
|
PARTITION pa11 values less than MAXVALUE);
|
||||||
|
|
||||||
|
######## Create SPs, Functions, Views and Triggers Section ##############
|
||||||
|
|
||||||
|
delimiter |;
|
||||||
|
|
||||||
|
CREATE PROCEDURE test.proc_part()
|
||||||
|
BEGIN
|
||||||
|
DECLARE ins_count INT DEFAULT 1000;
|
||||||
|
DECLARE del_count INT;
|
||||||
|
DECLARE cur_user VARCHAR(255);
|
||||||
|
DECLARE local_uuid VARCHAR(255);
|
||||||
|
DECLARE local_time TIMESTAMP;
|
||||||
|
|
||||||
|
SET local_time= NOW();
|
||||||
|
SET cur_user= CURRENT_USER();
|
||||||
|
SET local_uuid= UUID();
|
||||||
|
|
||||||
|
WHILE ins_count > 0 DO
|
||||||
|
INSERT INTO test.part_tbl VALUES (NULL, NOW(), USER() , UUID(),
|
||||||
|
ins_count,'Going to test MBR for MySQL');
|
||||||
|
SET ins_count = ins_count - 1;
|
||||||
|
END WHILE;
|
||||||
|
SELECT MAX(id) FROM test.part_tbl INTO del_count;
|
||||||
|
WHILE del_count > 0 DO
|
||||||
|
DELETE FROM test.part_tbl WHERE id = del_count;
|
||||||
|
select count(*) as internal_count, del_count -- these two lines are for
|
||||||
|
FROM test.part_tbl; -- debug to show the problem
|
||||||
|
SET del_count = del_count - 2;
|
||||||
|
END WHILE;
|
||||||
|
END|
|
||||||
|
|
||||||
|
delimiter ;|
|
||||||
|
|
||||||
|
############ Finish Setup Section ###################
|
||||||
|
|
||||||
|
############ Test Section ###################
|
||||||
|
--horizontal_results
|
||||||
|
|
||||||
|
CALL test.proc_part();
|
||||||
|
|
||||||
|
select count(*) as Part from test.part_tbl;
|
||||||
|
|
||||||
|
###### CLEAN UP SECTION ##############
|
||||||
|
|
||||||
|
DROP PROCEDURE test.proc_part;
|
||||||
|
DROP TABLE test.part_tbl;
|
||||||
|
|
@@ -56,6 +56,7 @@ static void set_no_inherit(int socket)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const int Listener::LISTEN_BACK_LOG_SIZE= 5; /* standard backlog size */
|
||||||
|
|
||||||
Listener::Listener(Thread_registry *thread_registry_arg,
|
Listener::Listener(Thread_registry *thread_registry_arg,
|
||||||
User_map *user_map_arg)
|
User_map *user_map_arg)
|
||||||
|
@@ -39,7 +39,7 @@ protected:
|
|||||||
virtual void run();
|
virtual void run();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const int LISTEN_BACK_LOG_SIZE= 5; /* standard backlog size */
|
static const int LISTEN_BACK_LOG_SIZE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Thread_info thread_info;
|
Thread_info thread_info;
|
||||||
|
@@ -145,6 +145,8 @@ static uint alter_table_flags(uint flags __attribute__((unused)))
|
|||||||
HA_FAST_CHANGE_PARTITION);
|
HA_FAST_CHANGE_PARTITION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const uint ha_partition::NO_CURRENT_PART_ID= 0xFFFFFFFF;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Constructor method
|
Constructor method
|
||||||
|
|
||||||
@@ -2705,7 +2707,15 @@ int ha_partition::write_row(uchar * buf)
|
|||||||
*/
|
*/
|
||||||
autoincrement_lock= true;
|
autoincrement_lock= true;
|
||||||
pthread_mutex_lock(&table_share->mutex);
|
pthread_mutex_lock(&table_share->mutex);
|
||||||
update_auto_increment();
|
error= update_auto_increment();
|
||||||
|
|
||||||
|
/*
|
||||||
|
If we have failed to set the auto-increment value for this row,
|
||||||
|
it is highly likely that we will not be able to insert it into
|
||||||
|
the correct partition. We must check and fail if neccessary.
|
||||||
|
*/
|
||||||
|
if (error)
|
||||||
|
DBUG_RETURN(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, table->read_set);
|
my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, table->read_set);
|
||||||
@@ -5498,8 +5508,10 @@ void ha_partition::get_auto_increment(ulonglong offset, ulonglong increment,
|
|||||||
ulonglong first_value_part, last_value_part, nb_reserved_values_part,
|
ulonglong first_value_part, last_value_part, nb_reserved_values_part,
|
||||||
last_value= ~ (ulonglong) 0;
|
last_value= ~ (ulonglong) 0;
|
||||||
handler **pos, **end;
|
handler **pos, **end;
|
||||||
|
bool retry= TRUE;
|
||||||
DBUG_ENTER("ha_partition::get_auto_increment");
|
DBUG_ENTER("ha_partition::get_auto_increment");
|
||||||
|
|
||||||
|
again:
|
||||||
for (pos=m_file, end= m_file+ m_tot_parts; pos != end ; pos++)
|
for (pos=m_file, end= m_file+ m_tot_parts; pos != end ; pos++)
|
||||||
{
|
{
|
||||||
first_value_part= *first_value;
|
first_value_part= *first_value;
|
||||||
@@ -5508,7 +5520,8 @@ void ha_partition::get_auto_increment(ulonglong offset, ulonglong increment,
|
|||||||
if (first_value_part == ~(ulonglong)(0)) // error in one partition
|
if (first_value_part == ~(ulonglong)(0)) // error in one partition
|
||||||
{
|
{
|
||||||
*first_value= first_value_part;
|
*first_value= first_value_part;
|
||||||
break;
|
sql_print_error("Partition failed to reserve auto_increment value");
|
||||||
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
Partition has reserved an interval. Intersect it with the intervals
|
Partition has reserved an interval. Intersect it with the intervals
|
||||||
@@ -5521,6 +5534,25 @@ void ha_partition::get_auto_increment(ulonglong offset, ulonglong increment,
|
|||||||
}
|
}
|
||||||
if (last_value < *first_value) /* empty intersection, error */
|
if (last_value < *first_value) /* empty intersection, error */
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
When we have an empty intersection, it means that one or more
|
||||||
|
partitions may have a significantly different autoinc next value.
|
||||||
|
We should not fail here - it just means that we should try to
|
||||||
|
find a new reservation making use of the current *first_value
|
||||||
|
wbich should now be compatible with all partitions.
|
||||||
|
*/
|
||||||
|
if (retry)
|
||||||
|
{
|
||||||
|
retry= FALSE;
|
||||||
|
last_value= ~ (ulonglong) 0;
|
||||||
|
release_auto_increment();
|
||||||
|
goto again;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
We should not get here.
|
||||||
|
*/
|
||||||
|
sql_print_error("Failed to calculate auto_increment value for partition");
|
||||||
|
|
||||||
*first_value= ~(ulonglong)(0);
|
*first_value= ~(ulonglong)(0);
|
||||||
}
|
}
|
||||||
if (increment) // If not check for values
|
if (increment) // If not check for values
|
||||||
|
@@ -469,7 +469,7 @@ public:
|
|||||||
virtual int reset(void);
|
virtual int reset(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint NO_CURRENT_PART_ID= 0xFFFFFFFF;
|
static const uint NO_CURRENT_PART_ID;
|
||||||
int loop_extra(enum ha_extra_function operation);
|
int loop_extra(enum ha_extra_function operation);
|
||||||
void late_extra_cache(uint partition_id);
|
void late_extra_cache(uint partition_id);
|
||||||
void late_extra_no_cache(uint partition_id);
|
void late_extra_no_cache(uint partition_id);
|
||||||
|
@@ -510,7 +510,7 @@ unsigned int ZEXPORT azread ( azio_stream *s, voidp buf, unsigned int len, int *
|
|||||||
Writes the given number of uncompressed bytes into the compressed file.
|
Writes the given number of uncompressed bytes into the compressed file.
|
||||||
azwrite returns the number of bytes actually written (0 in case of error).
|
azwrite returns the number of bytes actually written (0 in case of error).
|
||||||
*/
|
*/
|
||||||
unsigned int azwrite (azio_stream *s, voidpc buf, unsigned int len)
|
unsigned int azwrite (azio_stream *s, const voidp buf, unsigned int len)
|
||||||
{
|
{
|
||||||
s->stream.next_in = (Bytef*)buf;
|
s->stream.next_in = (Bytef*)buf;
|
||||||
s->stream.avail_in = len;
|
s->stream.avail_in = len;
|
||||||
|
@@ -273,7 +273,7 @@ extern unsigned int azread ( azio_stream *s, voidp buf, unsigned int len, int *e
|
|||||||
gzread returns the number of uncompressed bytes actually read (0 for
|
gzread returns the number of uncompressed bytes actually read (0 for
|
||||||
end of file, -1 for error). */
|
end of file, -1 for error). */
|
||||||
|
|
||||||
extern unsigned int azwrite (azio_stream *s, voidpc buf, unsigned int len);
|
extern unsigned int azwrite (azio_stream *s, const voidp buf, unsigned int len);
|
||||||
/*
|
/*
|
||||||
Writes the given number of uncompressed bytes into the compressed file.
|
Writes the given number of uncompressed bytes into the compressed file.
|
||||||
azwrite returns the number of uncompressed bytes actually written
|
azwrite returns the number of uncompressed bytes actually written
|
||||||
|
@@ -1903,12 +1903,11 @@ retry:
|
|||||||
/* We just mark the SQL statement ended and do not do a
|
/* We just mark the SQL statement ended and do not do a
|
||||||
transaction commit */
|
transaction commit */
|
||||||
|
|
||||||
if (trx->auto_inc_lock) {
|
/* If we had reserved the auto-inc lock for some
|
||||||
/* If we had reserved the auto-inc lock for some
|
table in this SQL statement we release it now */
|
||||||
table in this SQL statement we release it now */
|
|
||||||
|
row_unlock_table_autoinc_for_mysql(trx);
|
||||||
|
|
||||||
row_unlock_table_autoinc_for_mysql(trx);
|
|
||||||
}
|
|
||||||
/* Store the current undo_no of the transaction so that we
|
/* Store the current undo_no of the transaction so that we
|
||||||
know where to roll back if we have to roll back the next
|
know where to roll back if we have to roll back the next
|
||||||
SQL statement */
|
SQL statement */
|
||||||
@@ -1961,13 +1960,11 @@ innobase_rollback(
|
|||||||
|
|
||||||
innobase_release_stat_resources(trx);
|
innobase_release_stat_resources(trx);
|
||||||
|
|
||||||
if (trx->auto_inc_lock) {
|
/* If we had reserved the auto-inc lock for some table (if
|
||||||
/* If we had reserved the auto-inc lock for some table (if
|
we come here to roll back the latest SQL statement) we
|
||||||
we come here to roll back the latest SQL statement) we
|
release it now before a possibly lengthy rollback */
|
||||||
release it now before a possibly lengthy rollback */
|
|
||||||
|
|
||||||
row_unlock_table_autoinc_for_mysql(trx);
|
row_unlock_table_autoinc_for_mysql(trx);
|
||||||
}
|
|
||||||
|
|
||||||
if (all
|
if (all
|
||||||
|| !thd_test_options(thd, OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN)) {
|
|| !thd_test_options(thd, OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN)) {
|
||||||
@@ -2001,13 +1998,11 @@ innobase_rollback_trx(
|
|||||||
|
|
||||||
innobase_release_stat_resources(trx);
|
innobase_release_stat_resources(trx);
|
||||||
|
|
||||||
if (trx->auto_inc_lock) {
|
/* If we had reserved the auto-inc lock for some table (if
|
||||||
/* If we had reserved the auto-inc lock for some table (if
|
we come here to roll back the latest SQL statement) we
|
||||||
we come here to roll back the latest SQL statement) we
|
release it now before a possibly lengthy rollback */
|
||||||
release it now before a possibly lengthy rollback */
|
|
||||||
|
|
||||||
row_unlock_table_autoinc_for_mysql(trx);
|
row_unlock_table_autoinc_for_mysql(trx);
|
||||||
}
|
|
||||||
|
|
||||||
error = trx_rollback_for_mysql(trx);
|
error = trx_rollback_for_mysql(trx);
|
||||||
|
|
||||||
@@ -7167,7 +7162,7 @@ ha_innobase::innobase_read_and_init_auto_inc(
|
|||||||
|
|
||||||
if (auto_inc == 0) {
|
if (auto_inc == 0) {
|
||||||
dict_index_t* index;
|
dict_index_t* index;
|
||||||
ulint error = DB_SUCCESS;
|
ulint error;
|
||||||
const char* autoinc_col_name;
|
const char* autoinc_col_name;
|
||||||
|
|
||||||
ut_a(!innodb_table->autoinc_inited);
|
ut_a(!innodb_table->autoinc_inited);
|
||||||
@@ -7239,12 +7234,10 @@ ha_innobase::innobase_get_auto_increment(
|
|||||||
trx = prebuilt->trx;
|
trx = prebuilt->trx;
|
||||||
dict_table_autoinc_unlock(prebuilt->table);
|
dict_table_autoinc_unlock(prebuilt->table);
|
||||||
|
|
||||||
if (trx->auto_inc_lock) {
|
/* If we had reserved the AUTO-INC
|
||||||
/* If we had reserved the AUTO-INC
|
lock in this SQL statement we release
|
||||||
lock in this SQL statement we release
|
it before retrying.*/
|
||||||
it before retrying.*/
|
row_unlock_table_autoinc_for_mysql(trx);
|
||||||
row_unlock_table_autoinc_for_mysql(trx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Just to make sure */
|
/* Just to make sure */
|
||||||
ut_a(!trx->auto_inc_lock);
|
ut_a(!trx->auto_inc_lock);
|
||||||
@@ -7286,6 +7279,7 @@ ha_innobase::get_auto_increment(
|
|||||||
ulonglong *first_value, /* out: the autoinc value */
|
ulonglong *first_value, /* out: the autoinc value */
|
||||||
ulonglong *nb_reserved_values) /* out: count of reserved values */
|
ulonglong *nb_reserved_values) /* out: count of reserved values */
|
||||||
{
|
{
|
||||||
|
trx_t* trx;
|
||||||
ulint error;
|
ulint error;
|
||||||
ulonglong autoinc = 0;
|
ulonglong autoinc = 0;
|
||||||
|
|
||||||
@@ -7312,37 +7306,29 @@ ha_innobase::get_auto_increment(
|
|||||||
this method for the same statement results in different values which
|
this method for the same statement results in different values which
|
||||||
don't make sense. Therefore we store the value the first time we are
|
don't make sense. Therefore we store the value the first time we are
|
||||||
called and count down from that as rows are written (see write_row()).
|
called and count down from that as rows are written (see write_row()).
|
||||||
|
*/
|
||||||
|
|
||||||
We make one exception, if the *first_value is precomputed by MySQL
|
trx = prebuilt->trx;
|
||||||
we use that value. And set the number of reserved values to 1 if
|
|
||||||
this is the first time we were called for the SQL statement, this
|
|
||||||
will force MySQL to call us for the next value. If we are in the
|
|
||||||
middle of a multi-row insert we preserve the existing counter.*/
|
|
||||||
if (*first_value == 0) {
|
|
||||||
|
|
||||||
/* Called for the first time ? */
|
/* Called for the first time ? */
|
||||||
if (prebuilt->trx->n_autoinc_rows == 0) {
|
if (trx->n_autoinc_rows == 0) {
|
||||||
|
|
||||||
prebuilt->trx->n_autoinc_rows = (ulint) nb_desired_values;
|
trx->n_autoinc_rows = (ulint) nb_desired_values;
|
||||||
|
|
||||||
/* It's possible for nb_desired_values to be 0:
|
/* It's possible for nb_desired_values to be 0:
|
||||||
e.g., INSERT INTO T1(C) SELECT C FROM T2; */
|
e.g., INSERT INTO T1(C) SELECT C FROM T2; */
|
||||||
if (nb_desired_values == 0) {
|
if (nb_desired_values == 0) {
|
||||||
|
|
||||||
++prebuilt->trx->n_autoinc_rows;
|
trx->n_autoinc_rows = 1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*first_value = autoinc;
|
set_if_bigger(*first_value, autoinc);
|
||||||
|
/* Not in the middle of a mult-row INSERT. */
|
||||||
} else if (prebuilt->trx->n_autoinc_rows == 0) {
|
} else if (prebuilt->last_value == 0) {
|
||||||
|
set_if_bigger(*first_value, autoinc);
|
||||||
prebuilt->trx->n_autoinc_rows = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ut_a(prebuilt->trx->n_autoinc_rows > 0);
|
*nb_reserved_values = trx->n_autoinc_rows;
|
||||||
|
|
||||||
*nb_reserved_values = prebuilt->trx->n_autoinc_rows;
|
|
||||||
|
|
||||||
/* With old style AUTOINC locking we only update the table's
|
/* With old style AUTOINC locking we only update the table's
|
||||||
AUTOINC counter after attempting to insert the row. */
|
AUTOINC counter after attempting to insert the row. */
|
||||||
@@ -7669,12 +7655,10 @@ innobase_xa_prepare(
|
|||||||
/* We just mark the SQL statement ended and do not do a
|
/* We just mark the SQL statement ended and do not do a
|
||||||
transaction prepare */
|
transaction prepare */
|
||||||
|
|
||||||
if (trx->auto_inc_lock) {
|
/* If we had reserved the auto-inc lock for some
|
||||||
/* If we had reserved the auto-inc lock for some
|
table in this SQL statement we release it now */
|
||||||
table in this SQL statement we release it now */
|
|
||||||
|
|
||||||
row_unlock_table_autoinc_for_mysql(trx);
|
row_unlock_table_autoinc_for_mysql(trx);
|
||||||
}
|
|
||||||
|
|
||||||
/* Store the current undo_no of the transaction so that we
|
/* Store the current undo_no of the transaction so that we
|
||||||
know where to roll back if we have to roll back the next
|
know where to roll back if we have to roll back the next
|
||||||
@@ -8025,7 +8009,7 @@ static MYSQL_SYSVAR_STR(data_file_path, innobase_data_file_path,
|
|||||||
NULL, NULL, NULL);
|
NULL, NULL, NULL);
|
||||||
|
|
||||||
static MYSQL_SYSVAR_LONG(autoinc_lock_mode, innobase_autoinc_lock_mode,
|
static MYSQL_SYSVAR_LONG(autoinc_lock_mode, innobase_autoinc_lock_mode,
|
||||||
PLUGIN_VAR_RQCMDARG,
|
PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_READONLY,
|
||||||
"The AUTOINC lock modes supported by InnoDB:\n"
|
"The AUTOINC lock modes supported by InnoDB:\n"
|
||||||
" 0 => Old style AUTOINC locking (for backward compatibility)\n"
|
" 0 => Old style AUTOINC locking (for backward compatibility)\n"
|
||||||
" 1 => New style AUTOINC locking\n"
|
" 1 => New style AUTOINC locking\n"
|
||||||
|
@@ -4533,7 +4533,6 @@ row_search_autoinc_read_column(
|
|||||||
ibool unsigned_type) /* in: signed or unsigned flag */
|
ibool unsigned_type) /* in: signed or unsigned flag */
|
||||||
{
|
{
|
||||||
ulint len;
|
ulint len;
|
||||||
byte* ptr;
|
|
||||||
const byte* data;
|
const byte* data;
|
||||||
ib_longlong value;
|
ib_longlong value;
|
||||||
mem_heap_t* heap = NULL;
|
mem_heap_t* heap = NULL;
|
||||||
@@ -4555,49 +4554,20 @@ row_search_autoinc_read_column(
|
|||||||
ut_a(len != UNIV_SQL_NULL);
|
ut_a(len != UNIV_SQL_NULL);
|
||||||
ut_a(len <= sizeof value);
|
ut_a(len <= sizeof value);
|
||||||
|
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
/* Copy integer data and restore sign bit */
|
/* Copy integer data and restore sign bit */
|
||||||
|
if (unsigned_type || (data[0] & 128))
|
||||||
|
memset(dest, 0x00, sizeof(dest));
|
||||||
|
else
|
||||||
|
memset(dest, 0xff, sizeof(dest));
|
||||||
|
|
||||||
memcpy((ptr = dest), data, len);
|
memcpy(dest + (sizeof(value) - len), data, len);
|
||||||
|
|
||||||
if (!unsigned_type) {
|
if (!unsigned_type)
|
||||||
dest[0] ^= 128;
|
dest[sizeof(value) - len] ^= 128;
|
||||||
}
|
|
||||||
#else
|
|
||||||
/* Convert integer data from Innobase to a little-endian format,
|
|
||||||
sign bit restored to normal */
|
|
||||||
|
|
||||||
for (ptr = dest + len; ptr != dest; ++data) {
|
|
||||||
--ptr;
|
|
||||||
*ptr = *data;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!unsigned_type) {
|
|
||||||
dest[len - 1] ^= 128;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* The assumption here is that the AUTOINC value can't be negative.*/
|
/* The assumption here is that the AUTOINC value can't be negative.*/
|
||||||
switch (len) {
|
value = (((ib_longlong) mach_read_from_4(dest)) << 32) |
|
||||||
case 8:
|
((ib_longlong) mach_read_from_4(dest + 4));
|
||||||
value = *(ib_longlong*) ptr;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 4:
|
|
||||||
value = *(ib_uint32_t*) ptr;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
value = *(uint16 *) ptr;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 1:
|
|
||||||
value = *ptr;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
ut_error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (UNIV_LIKELY_NULL(heap)) {
|
if (UNIV_LIKELY_NULL(heap)) {
|
||||||
mem_heap_free(heap);
|
mem_heap_free(heap);
|
||||||
|
Reference in New Issue
Block a user