mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
5.5 merge
This commit is contained in:
10
mysql-test/suite/archive/repair.result
Normal file
10
mysql-test/suite/archive/repair.result
Normal file
@@ -0,0 +1,10 @@
|
||||
create table t1 (a int) engine=archive;
|
||||
insert into t1 values (1);
|
||||
select * from t1;
|
||||
Got one of the listed errors
|
||||
insert into t1 values (2);
|
||||
ERROR HY000: Table 't1' is marked as crashed and should be repaired
|
||||
repair table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Corrupt
|
||||
drop table t1;
|
||||
17
mysql-test/suite/archive/repair.test
Normal file
17
mysql-test/suite/archive/repair.test
Normal file
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# MDEV-4444 Server crashes with "safe_mutex: Trying to destroy a mutex share->mutex that was locked" on attempt to recover an archive table
|
||||
#
|
||||
|
||||
--source include/have_archive.inc
|
||||
|
||||
--let $datadir = `SELECT @@datadir`
|
||||
|
||||
create table t1 (a int) engine=archive;
|
||||
insert into t1 values (1);
|
||||
--remove_file $datadir/test/t1.ARZ
|
||||
--error 13,1017
|
||||
select * from t1;
|
||||
--error ER_CRASHED_ON_USAGE
|
||||
insert into t1 values (2);
|
||||
repair table t1;
|
||||
drop table t1;
|
||||
@@ -447,6 +447,7 @@ BEGIN
|
||||
### DELETE FROM `test1`.`t1`
|
||||
### WHERE
|
||||
### @1=3 /* INT meta=0 nullable=1 is_null=0 */
|
||||
'/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
@@ -1111,6 +1112,7 @@ BEGIN
|
||||
### DELETE FROM `test1`.`t1`
|
||||
### WHERE
|
||||
### @1=3 /* INT meta=0 nullable=1 is_null=0 */
|
||||
'/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
|
||||
@@ -7,6 +7,12 @@ Level Code Message
|
||||
Error 1 server name: 'non_existing' doesn't exist!
|
||||
Error 1 Can't create/write to file 'non_existing' (Errcode: 14 "Bad address")
|
||||
Error 1005 Can't create table `test`.`t1` (errno: 1 "Operation not permitted")
|
||||
create table t1 (a int);
|
||||
create table fed (a int) engine=Federated CONNECTION='mysql://root@127.0.0.1:MASTER_PORT/test/t1';
|
||||
drop table t1;
|
||||
select * from fed;
|
||||
Got one of the listed errors
|
||||
drop table fed;
|
||||
DROP TABLE IF EXISTS federated.t1;
|
||||
DROP DATABASE IF EXISTS federated;
|
||||
DROP TABLE IF EXISTS federated.t1;
|
||||
|
||||
@@ -8,5 +8,17 @@ connection master;
|
||||
CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='non_existing';
|
||||
SHOW WARNINGS;
|
||||
|
||||
#
|
||||
# MDEV-4468 Assertion `error != 0' fails or timeout occurs on select from a FEDERATED table which points at a non-existent table
|
||||
#
|
||||
|
||||
create table t1 (a int);
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
eval create table fed (a int) engine=Federated CONNECTION='mysql://root@127.0.0.1:$MASTER_MYPORT/test/t1';
|
||||
drop table t1;
|
||||
--error 1146,1431
|
||||
select * from fed;
|
||||
drop table fed;
|
||||
|
||||
source include/federated_cleanup.inc;
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ def information_schema EVENTS CHARACTER_SET_CLIENT 22 NO varchar 32 96 NULL NUL
|
||||
def information_schema EVENTS COLLATION_CONNECTION 23 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
|
||||
def information_schema EVENTS CREATED 17 0000-00-00 00:00:00 NO datetime NULL NULL NULL NULL 0 NULL NULL datetime select
|
||||
def information_schema EVENTS DATABASE_COLLATION 24 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
|
||||
def information_schema EVENTS DEFINER 4 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77) select
|
||||
def information_schema EVENTS DEFINER 4 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189) select
|
||||
def information_schema EVENTS ENDS 14 NULL YES datetime NULL NULL NULL NULL 0 NULL NULL datetime select
|
||||
def information_schema EVENTS EVENT_BODY 6 NO varchar 8 24 NULL NULL NULL utf8 utf8_general_ci varchar(8) select
|
||||
def information_schema EVENTS EVENT_CATALOG 1 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||
@@ -267,7 +267,7 @@ def information_schema ROUTINES CREATED 24 0000-00-00 00:00:00 NO datetime NULL
|
||||
def information_schema ROUTINES DATABASE_COLLATION 31 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
|
||||
def information_schema ROUTINES DATA_TYPE 6 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||
def information_schema ROUTINES DATETIME_PRECISION 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned select
|
||||
def information_schema ROUTINES DEFINER 28 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77) select
|
||||
def information_schema ROUTINES DEFINER 28 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189) select
|
||||
def information_schema ROUTINES DTD_IDENTIFIER 14 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8 utf8_general_ci longtext select
|
||||
def information_schema ROUTINES EXTERNAL_LANGUAGE 18 NULL YES varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||
def information_schema ROUTINES EXTERNAL_NAME 17 NULL YES varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||
@@ -378,7 +378,7 @@ def information_schema TRIGGERS CHARACTER_SET_CLIENT 20 NO varchar 32 96 NULL N
|
||||
def information_schema TRIGGERS COLLATION_CONNECTION 21 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
|
||||
def information_schema TRIGGERS CREATED 17 NULL YES datetime NULL NULL NULL NULL 0 NULL NULL datetime select
|
||||
def information_schema TRIGGERS DATABASE_COLLATION 22 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
|
||||
def information_schema TRIGGERS DEFINER 19 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77) select
|
||||
def information_schema TRIGGERS DEFINER 19 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189) select
|
||||
def information_schema TRIGGERS EVENT_MANIPULATION 4 NO varchar 6 18 NULL NULL NULL utf8 utf8_general_ci varchar(6) select
|
||||
def information_schema TRIGGERS EVENT_OBJECT_CATALOG 5 NO varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512) select
|
||||
def information_schema TRIGGERS EVENT_OBJECT_SCHEMA 6 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||
@@ -417,7 +417,7 @@ def information_schema USER_STATISTICS USER 1 NO varchar 128 384 NULL NULL NULL
|
||||
def information_schema VIEWS CHARACTER_SET_CLIENT 9 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
|
||||
def information_schema VIEWS CHECK_OPTION 5 NO varchar 8 24 NULL NULL NULL utf8 utf8_general_ci varchar(8) select
|
||||
def information_schema VIEWS COLLATION_CONNECTION 10 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
|
||||
def information_schema VIEWS DEFINER 7 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77) select
|
||||
def information_schema VIEWS DEFINER 7 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189) select
|
||||
def information_schema VIEWS IS_UPDATABLE 6 NO varchar 3 9 NULL NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||
def information_schema VIEWS SECURITY_TYPE 8 NO varchar 7 21 NULL NULL NULL utf8 utf8_general_ci varchar(7) select
|
||||
def information_schema VIEWS TABLE_CATALOG 1 NO varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512) select
|
||||
@@ -570,7 +570,7 @@ NULL information_schema COLUMNS DATETIME_PRECISION bigint NULL NULL NULL NULL bi
|
||||
3.0000 information_schema EVENTS EVENT_CATALOG varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS EVENT_SCHEMA varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS EVENT_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema EVENTS DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema EVENTS TIME_ZONE varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS EVENT_BODY varchar 8 24 utf8 utf8_general_ci varchar(8)
|
||||
1.0000 information_schema EVENTS EVENT_DEFINITION longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||
@@ -767,7 +767,7 @@ NULL information_schema ROUTINES CREATED datetime NULL NULL NULL NULL datetime
|
||||
NULL information_schema ROUTINES LAST_ALTERED datetime NULL NULL NULL NULL datetime
|
||||
3.0000 information_schema ROUTINES SQL_MODE varchar 8192 24576 utf8 utf8_general_ci varchar(8192)
|
||||
1.0000 information_schema ROUTINES ROUTINE_COMMENT longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||
3.0000 information_schema ROUTINES DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema ROUTINES DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema ROUTINES CHARACTER_SET_CLIENT varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema ROUTINES COLLATION_CONNECTION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema ROUTINES DATABASE_COLLATION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
@@ -866,7 +866,7 @@ NULL information_schema TRIGGERS ACTION_ORDER bigint NULL NULL NULL NULL bigint(
|
||||
3.0000 information_schema TRIGGERS ACTION_REFERENCE_NEW_ROW varchar 3 9 utf8 utf8_general_ci varchar(3)
|
||||
NULL information_schema TRIGGERS CREATED datetime NULL NULL NULL NULL datetime
|
||||
3.0000 information_schema TRIGGERS SQL_MODE varchar 8192 24576 utf8 utf8_general_ci varchar(8192)
|
||||
3.0000 information_schema TRIGGERS DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema TRIGGERS DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema TRIGGERS CHARACTER_SET_CLIENT varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema TRIGGERS COLLATION_CONNECTION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema TRIGGERS DATABASE_COLLATION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
@@ -903,7 +903,7 @@ NULL information_schema USER_STATISTICS EMPTY_QUERIES bigint NULL NULL NULL NULL
|
||||
1.0000 information_schema VIEWS VIEW_DEFINITION longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||
3.0000 information_schema VIEWS CHECK_OPTION varchar 8 24 utf8 utf8_general_ci varchar(8)
|
||||
3.0000 information_schema VIEWS IS_UPDATABLE varchar 3 9 utf8 utf8_general_ci varchar(3)
|
||||
3.0000 information_schema VIEWS DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema VIEWS DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema VIEWS SECURITY_TYPE varchar 7 21 utf8 utf8_general_ci varchar(7)
|
||||
3.0000 information_schema VIEWS CHARACTER_SET_CLIENT varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema VIEWS COLLATION_CONNECTION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
|
||||
@@ -89,7 +89,7 @@ def information_schema EVENTS CHARACTER_SET_CLIENT 22 NO varchar 32 96 NULL NUL
|
||||
def information_schema EVENTS COLLATION_CONNECTION 23 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32)
|
||||
def information_schema EVENTS CREATED 17 0000-00-00 00:00:00 NO datetime NULL NULL NULL NULL 0 NULL NULL datetime
|
||||
def information_schema EVENTS DATABASE_COLLATION 24 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32)
|
||||
def information_schema EVENTS DEFINER 4 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77)
|
||||
def information_schema EVENTS DEFINER 4 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189)
|
||||
def information_schema EVENTS ENDS 14 NULL YES datetime NULL NULL NULL NULL 0 NULL NULL datetime
|
||||
def information_schema EVENTS EVENT_BODY 6 NO varchar 8 24 NULL NULL NULL utf8 utf8_general_ci varchar(8)
|
||||
def information_schema EVENTS EVENT_CATALOG 1 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
|
||||
@@ -268,7 +268,7 @@ def information_schema ROUTINES CREATED 24 0000-00-00 00:00:00 NO datetime NULL
|
||||
def information_schema ROUTINES DATABASE_COLLATION 31 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32)
|
||||
def information_schema ROUTINES DATA_TYPE 6 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
|
||||
def information_schema ROUTINES DATETIME_PRECISION 11 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned
|
||||
def information_schema ROUTINES DEFINER 28 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77)
|
||||
def information_schema ROUTINES DEFINER 28 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189)
|
||||
def information_schema ROUTINES DTD_IDENTIFIER 14 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8 utf8_general_ci longtext
|
||||
def information_schema ROUTINES EXTERNAL_LANGUAGE 18 NULL YES varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
|
||||
def information_schema ROUTINES EXTERNAL_NAME 17 NULL YES varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
|
||||
@@ -379,7 +379,7 @@ def information_schema TRIGGERS CHARACTER_SET_CLIENT 20 NO varchar 32 96 NULL N
|
||||
def information_schema TRIGGERS COLLATION_CONNECTION 21 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32)
|
||||
def information_schema TRIGGERS CREATED 17 NULL YES datetime NULL NULL NULL NULL 0 NULL NULL datetime
|
||||
def information_schema TRIGGERS DATABASE_COLLATION 22 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32)
|
||||
def information_schema TRIGGERS DEFINER 19 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77)
|
||||
def information_schema TRIGGERS DEFINER 19 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189)
|
||||
def information_schema TRIGGERS EVENT_MANIPULATION 4 NO varchar 6 18 NULL NULL NULL utf8 utf8_general_ci varchar(6)
|
||||
def information_schema TRIGGERS EVENT_OBJECT_CATALOG 5 NO varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512)
|
||||
def information_schema TRIGGERS EVENT_OBJECT_SCHEMA 6 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
|
||||
@@ -418,7 +418,7 @@ def information_schema USER_STATISTICS USER 1 NO varchar 128 384 NULL NULL NULL
|
||||
def information_schema VIEWS CHARACTER_SET_CLIENT 9 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32)
|
||||
def information_schema VIEWS CHECK_OPTION 5 NO varchar 8 24 NULL NULL NULL utf8 utf8_general_ci varchar(8)
|
||||
def information_schema VIEWS COLLATION_CONNECTION 10 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32)
|
||||
def information_schema VIEWS DEFINER 7 NO varchar 77 231 NULL NULL NULL utf8 utf8_general_ci varchar(77)
|
||||
def information_schema VIEWS DEFINER 7 NO varchar 189 567 NULL NULL NULL utf8 utf8_general_ci varchar(189)
|
||||
def information_schema VIEWS IS_UPDATABLE 6 NO varchar 3 9 NULL NULL NULL utf8 utf8_general_ci varchar(3)
|
||||
def information_schema VIEWS SECURITY_TYPE 8 NO varchar 7 21 NULL NULL NULL utf8 utf8_general_ci varchar(7)
|
||||
def information_schema VIEWS TABLE_CATALOG 1 NO varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512)
|
||||
@@ -575,7 +575,7 @@ NULL information_schema COLUMNS DATETIME_PRECISION bigint NULL NULL NULL NULL bi
|
||||
3.0000 information_schema EVENTS EVENT_CATALOG varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS EVENT_SCHEMA varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS EVENT_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema EVENTS DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema EVENTS TIME_ZONE varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||
3.0000 information_schema EVENTS EVENT_BODY varchar 8 24 utf8 utf8_general_ci varchar(8)
|
||||
1.0000 information_schema EVENTS EVENT_DEFINITION longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||
@@ -772,7 +772,7 @@ NULL information_schema ROUTINES CREATED datetime NULL NULL NULL NULL datetime
|
||||
NULL information_schema ROUTINES LAST_ALTERED datetime NULL NULL NULL NULL datetime
|
||||
3.0000 information_schema ROUTINES SQL_MODE varchar 8192 24576 utf8 utf8_general_ci varchar(8192)
|
||||
1.0000 information_schema ROUTINES ROUTINE_COMMENT longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||
3.0000 information_schema ROUTINES DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema ROUTINES DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema ROUTINES CHARACTER_SET_CLIENT varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema ROUTINES COLLATION_CONNECTION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema ROUTINES DATABASE_COLLATION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
@@ -871,7 +871,7 @@ NULL information_schema TRIGGERS ACTION_ORDER bigint NULL NULL NULL NULL bigint(
|
||||
3.0000 information_schema TRIGGERS ACTION_REFERENCE_NEW_ROW varchar 3 9 utf8 utf8_general_ci varchar(3)
|
||||
NULL information_schema TRIGGERS CREATED datetime NULL NULL NULL NULL datetime
|
||||
3.0000 information_schema TRIGGERS SQL_MODE varchar 8192 24576 utf8 utf8_general_ci varchar(8192)
|
||||
3.0000 information_schema TRIGGERS DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema TRIGGERS DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema TRIGGERS CHARACTER_SET_CLIENT varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema TRIGGERS COLLATION_CONNECTION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema TRIGGERS DATABASE_COLLATION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
@@ -908,7 +908,7 @@ NULL information_schema USER_STATISTICS EMPTY_QUERIES bigint NULL NULL NULL NULL
|
||||
1.0000 information_schema VIEWS VIEW_DEFINITION longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||
3.0000 information_schema VIEWS CHECK_OPTION varchar 8 24 utf8 utf8_general_ci varchar(8)
|
||||
3.0000 information_schema VIEWS IS_UPDATABLE varchar 3 9 utf8 utf8_general_ci varchar(3)
|
||||
3.0000 information_schema VIEWS DEFINER varchar 77 231 utf8 utf8_general_ci varchar(77)
|
||||
3.0000 information_schema VIEWS DEFINER varchar 189 567 utf8 utf8_general_ci varchar(189)
|
||||
3.0000 information_schema VIEWS SECURITY_TYPE varchar 7 21 utf8 utf8_general_ci varchar(7)
|
||||
3.0000 information_schema VIEWS CHARACTER_SET_CLIENT varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
3.0000 information_schema VIEWS COLLATION_CONNECTION varchar 32 96 utf8 utf8_general_ci varchar(32)
|
||||
|
||||
@@ -81,7 +81,7 @@ def mysql gtid_slave_pos sub_id 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL b
|
||||
def mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||
def mysql help_category name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||
def mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned select,insert,update,references
|
||||
def mysql help_category url 4 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128) select,insert,update,references
|
||||
def mysql help_category url 4 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text select,insert,update,references
|
||||
def mysql help_keyword help_keyword_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI select,insert,update,references
|
||||
def mysql help_keyword name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||
def mysql help_relation help_keyword_id 2 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI select,insert,update,references
|
||||
@@ -91,7 +91,7 @@ def mysql help_topic example 5 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8
|
||||
def mysql help_topic help_category_id 3 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned select,insert,update,references
|
||||
def mysql help_topic help_topic_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI select,insert,update,references
|
||||
def mysql help_topic name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||
def mysql help_topic url 6 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128) select,insert,update,references
|
||||
def mysql help_topic url 6 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text select,insert,update,references
|
||||
def mysql host Alter_priv 12 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y') select,insert,update,references
|
||||
def mysql host Alter_routine_priv 18 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y') select,insert,update,references
|
||||
def mysql host Create_priv 7 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y') select,insert,update,references
|
||||
@@ -400,7 +400,7 @@ NULL mysql gtid_slave_pos seq_no bigint NULL NULL NULL NULL bigint(20) unsigned
|
||||
NULL mysql help_category help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_category parent_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_category url text 65535 65535 utf8 utf8_general_ci text
|
||||
NULL mysql help_keyword help_keyword_id int NULL NULL NULL NULL int(10) unsigned
|
||||
3.0000 mysql help_keyword name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_relation help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
@@ -410,7 +410,7 @@ NULL mysql help_topic help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
NULL mysql help_topic help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
1.0000 mysql help_topic description text 65535 65535 utf8 utf8_general_ci text
|
||||
1.0000 mysql help_topic example text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql help_topic url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_topic url text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql host Host char 60 180 utf8 utf8_bin char(60)
|
||||
3.0000 mysql host Db char 64 192 utf8 utf8_bin char(64)
|
||||
3.0000 mysql host Select_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
|
||||
|
||||
@@ -81,7 +81,7 @@ def mysql gtid_slave_pos sub_id 2 NULL NO bigint NULL NULL 20 0 NULL NULL NULL b
|
||||
def mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned PRI
|
||||
def mysql help_category name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI
|
||||
def mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned
|
||||
def mysql help_category url 4 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128)
|
||||
def mysql help_category url 4 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text
|
||||
def mysql help_keyword help_keyword_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI
|
||||
def mysql help_keyword name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI
|
||||
def mysql help_relation help_keyword_id 2 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI
|
||||
@@ -91,7 +91,7 @@ def mysql help_topic example 5 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8
|
||||
def mysql help_topic help_category_id 3 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned
|
||||
def mysql help_topic help_topic_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI
|
||||
def mysql help_topic name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI
|
||||
def mysql help_topic url 6 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128)
|
||||
def mysql help_topic url 6 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text
|
||||
def mysql host Alter_priv 12 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y')
|
||||
def mysql host Alter_routine_priv 18 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y')
|
||||
def mysql host Create_priv 7 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y')
|
||||
@@ -400,7 +400,7 @@ NULL mysql gtid_slave_pos seq_no bigint NULL NULL NULL NULL bigint(20) unsigned
|
||||
NULL mysql help_category help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_category parent_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_category url text 65535 65535 utf8 utf8_general_ci text
|
||||
NULL mysql help_keyword help_keyword_id int NULL NULL NULL NULL int(10) unsigned
|
||||
3.0000 mysql help_keyword name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_relation help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
@@ -410,7 +410,7 @@ NULL mysql help_topic help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
NULL mysql help_topic help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
1.0000 mysql help_topic description text 65535 65535 utf8 utf8_general_ci text
|
||||
1.0000 mysql help_topic example text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql help_topic url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_topic url text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql host Host char 60 180 utf8 utf8_bin char(60)
|
||||
3.0000 mysql host Db char 64 192 utf8 utf8_bin char(64)
|
||||
3.0000 mysql host Select_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
|
||||
|
||||
@@ -31,7 +31,7 @@ Field Type Null Key Default Extra
|
||||
EVENT_CATALOG varchar(64) NO
|
||||
EVENT_SCHEMA varchar(64) NO
|
||||
EVENT_NAME varchar(64) NO
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
TIME_ZONE varchar(64) NO
|
||||
EVENT_BODY varchar(8) NO
|
||||
EVENT_DEFINITION longtext NO NULL
|
||||
@@ -58,7 +58,7 @@ EVENTS CREATE TEMPORARY TABLE `EVENTS` (
|
||||
`EVENT_CATALOG` varchar(64) NOT NULL DEFAULT '',
|
||||
`EVENT_SCHEMA` varchar(64) NOT NULL DEFAULT '',
|
||||
`EVENT_NAME` varchar(64) NOT NULL DEFAULT '',
|
||||
`DEFINER` varchar(77) NOT NULL DEFAULT '',
|
||||
`DEFINER` varchar(189) NOT NULL DEFAULT '',
|
||||
`TIME_ZONE` varchar(64) NOT NULL DEFAULT '',
|
||||
`EVENT_BODY` varchar(8) NOT NULL DEFAULT '',
|
||||
`EVENT_DEFINITION` longtext NOT NULL,
|
||||
@@ -85,7 +85,7 @@ Field Type Null Key Default Extra
|
||||
EVENT_CATALOG varchar(64) NO
|
||||
EVENT_SCHEMA varchar(64) NO
|
||||
EVENT_NAME varchar(64) NO
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
TIME_ZONE varchar(64) NO
|
||||
EVENT_BODY varchar(8) NO
|
||||
EVENT_DEFINITION longtext NO NULL
|
||||
|
||||
@@ -55,7 +55,7 @@ CREATED datetime NO 0000-00-00 00:00:00
|
||||
LAST_ALTERED datetime NO 0000-00-00 00:00:00
|
||||
SQL_MODE varchar(8192) NO
|
||||
ROUTINE_COMMENT longtext NO NULL
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
CHARACTER_SET_CLIENT varchar(32) NO
|
||||
COLLATION_CONNECTION varchar(32) NO
|
||||
DATABASE_COLLATION varchar(32) NO
|
||||
@@ -89,7 +89,7 @@ ROUTINES CREATE TEMPORARY TABLE `ROUTINES` (
|
||||
`LAST_ALTERED` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`SQL_MODE` varchar(8192) NOT NULL DEFAULT '',
|
||||
`ROUTINE_COMMENT` longtext NOT NULL,
|
||||
`DEFINER` varchar(77) NOT NULL DEFAULT '',
|
||||
`DEFINER` varchar(189) NOT NULL DEFAULT '',
|
||||
`CHARACTER_SET_CLIENT` varchar(32) NOT NULL DEFAULT '',
|
||||
`COLLATION_CONNECTION` varchar(32) NOT NULL DEFAULT '',
|
||||
`DATABASE_COLLATION` varchar(32) NOT NULL DEFAULT ''
|
||||
@@ -123,7 +123,7 @@ CREATED datetime NO 0000-00-00 00:00:00
|
||||
LAST_ALTERED datetime NO 0000-00-00 00:00:00
|
||||
SQL_MODE varchar(8192) NO
|
||||
ROUTINE_COMMENT longtext NO NULL
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
CHARACTER_SET_CLIENT varchar(32) NO
|
||||
COLLATION_CONNECTION varchar(32) NO
|
||||
DATABASE_COLLATION varchar(32) NO
|
||||
|
||||
@@ -179,7 +179,7 @@ TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MYISAM_OR_MARIA
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
ROW_FORMAT DYNAMIC_OR_PAGE
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
|
||||
@@ -179,7 +179,7 @@ TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MYISAM_OR_MARIA
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
ROW_FORMAT DYNAMIC_OR_PAGE
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
@@ -839,7 +839,7 @@ TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MYISAM_OR_MARIA
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
ROW_FORMAT DYNAMIC_OR_PAGE
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
|
||||
@@ -46,7 +46,7 @@ ACTION_REFERENCE_OLD_ROW varchar(3) NO
|
||||
ACTION_REFERENCE_NEW_ROW varchar(3) NO
|
||||
CREATED datetime YES NULL
|
||||
SQL_MODE varchar(8192) NO
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
CHARACTER_SET_CLIENT varchar(32) NO
|
||||
COLLATION_CONNECTION varchar(32) NO
|
||||
DATABASE_COLLATION varchar(32) NO
|
||||
@@ -71,7 +71,7 @@ TRIGGERS CREATE TEMPORARY TABLE `TRIGGERS` (
|
||||
`ACTION_REFERENCE_NEW_ROW` varchar(3) NOT NULL DEFAULT '',
|
||||
`CREATED` datetime DEFAULT NULL,
|
||||
`SQL_MODE` varchar(8192) NOT NULL DEFAULT '',
|
||||
`DEFINER` varchar(77) NOT NULL DEFAULT '',
|
||||
`DEFINER` varchar(189) NOT NULL DEFAULT '',
|
||||
`CHARACTER_SET_CLIENT` varchar(32) NOT NULL DEFAULT '',
|
||||
`COLLATION_CONNECTION` varchar(32) NOT NULL DEFAULT '',
|
||||
`DATABASE_COLLATION` varchar(32) NOT NULL DEFAULT ''
|
||||
@@ -96,7 +96,7 @@ ACTION_REFERENCE_OLD_ROW varchar(3) NO
|
||||
ACTION_REFERENCE_NEW_ROW varchar(3) NO
|
||||
CREATED datetime YES NULL
|
||||
SQL_MODE varchar(8192) NO
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
CHARACTER_SET_CLIENT varchar(32) NO
|
||||
COLLATION_CONNECTION varchar(32) NO
|
||||
DATABASE_COLLATION varchar(32) NO
|
||||
|
||||
@@ -34,7 +34,7 @@ TABLE_NAME varchar(64) NO
|
||||
VIEW_DEFINITION longtext NO NULL
|
||||
CHECK_OPTION varchar(8) NO
|
||||
IS_UPDATABLE varchar(3) NO
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
SECURITY_TYPE varchar(7) NO
|
||||
CHARACTER_SET_CLIENT varchar(32) NO
|
||||
COLLATION_CONNECTION varchar(32) NO
|
||||
@@ -47,7 +47,7 @@ VIEWS CREATE TEMPORARY TABLE `VIEWS` (
|
||||
`VIEW_DEFINITION` longtext NOT NULL,
|
||||
`CHECK_OPTION` varchar(8) NOT NULL DEFAULT '',
|
||||
`IS_UPDATABLE` varchar(3) NOT NULL DEFAULT '',
|
||||
`DEFINER` varchar(77) NOT NULL DEFAULT '',
|
||||
`DEFINER` varchar(189) NOT NULL DEFAULT '',
|
||||
`SECURITY_TYPE` varchar(7) NOT NULL DEFAULT '',
|
||||
`CHARACTER_SET_CLIENT` varchar(32) NOT NULL DEFAULT '',
|
||||
`COLLATION_CONNECTION` varchar(32) NOT NULL DEFAULT ''
|
||||
@@ -60,7 +60,7 @@ TABLE_NAME varchar(64) NO
|
||||
VIEW_DEFINITION longtext NO NULL
|
||||
CHECK_OPTION varchar(8) NO
|
||||
IS_UPDATABLE varchar(3) NO
|
||||
DEFINER varchar(77) NO
|
||||
DEFINER varchar(189) NO
|
||||
SECURITY_TYPE varchar(7) NO
|
||||
CHARACTER_SET_CLIENT varchar(32) NO
|
||||
COLLATION_CONNECTION varchar(32) NO
|
||||
|
||||
5
mysql-test/suite/handler/disconnect_4480.result
Normal file
5
mysql-test/suite/handler/disconnect_4480.result
Normal file
@@ -0,0 +1,5 @@
|
||||
create temporary table t1 as select 1;
|
||||
handler t1 open;
|
||||
handler t1 read next;
|
||||
1
|
||||
1
|
||||
10
mysql-test/suite/handler/disconnect_4480.test
Normal file
10
mysql-test/suite/handler/disconnect_4480.test
Normal file
@@ -0,0 +1,10 @@
|
||||
#
|
||||
# MDEV-4480 Assertion `inited == NONE' fails on closing a connection with open handler on temporary table
|
||||
#
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
create temporary table t1 as select 1;
|
||||
handler t1 open;
|
||||
handler t1 read next;
|
||||
--disconnect con1
|
||||
|
||||
@@ -213,7 +213,7 @@ c-1006=w
|
||||
EXPLAIN
|
||||
SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t3 range c1 c1 12 NULL 2 Using index condition; Using where
|
||||
1 SIMPLE t3 range c1 c1 12 NULL 2 Using where
|
||||
SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
|
||||
c1
|
||||
EXPLAIN
|
||||
@@ -857,5 +857,32 @@ insert into t1 values ('',1);
|
||||
select 1 from t1 where b <= 1 and a <> '';
|
||||
1
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-4778: Incorrect results from Aria/MyISAM SELECT using index with prefix length on TEXT column
|
||||
#
|
||||
CREATE TABLE t1 (
|
||||
c1 TEXT ,
|
||||
c2 VARCHAR(2) ,
|
||||
INDEX idx1 (c2,c1(2)),
|
||||
INDEX idx2 (c2,c1(1))
|
||||
);
|
||||
INSERT INTO t1 (c1,c2) VALUES ('aa','x'), ('a' ,'y');
|
||||
SELECT * FROM t1 IGNORE INDEX(idx1,idx2) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
|
||||
c1 c2
|
||||
aa x
|
||||
a y
|
||||
EXPLAIN
|
||||
SELECT * FROM t1 FORCE INDEX(idx1) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range idx1 idx1 10 NULL 2 Using where
|
||||
SELECT * FROM t1 FORCE INDEX(idx1) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
|
||||
c1 c2
|
||||
aa x
|
||||
a y
|
||||
SELECT * FROM t1 FORCE INDEX(idx2) WHERE (c1='aa' AND c2='x') OR (c1='a' AND c2='y');
|
||||
c1 c2
|
||||
aa x
|
||||
a y
|
||||
DROP TABLE t1;
|
||||
set storage_engine= @save_storage_engine;
|
||||
set optimizer_switch=@maria_icp_tmp;
|
||||
|
||||
@@ -312,7 +312,7 @@ aria_log_file_size 4294959104
|
||||
aria_log_purge_type immediate
|
||||
aria_max_sort_file_size 9223372036853727232
|
||||
aria_pagecache_age_threshold 300
|
||||
aria_pagecache_buffer_size 134217728
|
||||
aria_pagecache_buffer_size 8388608
|
||||
aria_pagecache_division_limit 100
|
||||
aria_page_checksum OFF
|
||||
aria_recover NORMAL
|
||||
|
||||
@@ -44,6 +44,7 @@ insert t2 values ('2020-10-09');
|
||||
select * from t2;
|
||||
a
|
||||
2020-10-09
|
||||
alter table t2 add column b int;
|
||||
drop table t2;
|
||||
explain select distinct * from t2;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
@@ -80,8 +81,8 @@ root[root] @ localhost [] mysql.table_stats : write
|
||||
root[root] @ localhost [] mysql.column_stats : write
|
||||
root[root] @ localhost [] mysql.index_stats : write
|
||||
root[root] @ localhost [] >> alter table t2 add column b int
|
||||
root[root] @ localhost [] test.t2 : alter
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
root[root] @ localhost [] test.t2 : alter
|
||||
root[root] @ localhost [] >> create definer=testuser@localhost view v1 as select t2.a+1, t2_copy.a+2 from t2, t2 as t2_copy
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
@@ -92,6 +93,7 @@ root[root] @ localhost [] >> drop view v1
|
||||
root[root] @ localhost [] >> create temporary table t2 (a date)
|
||||
root[root] @ localhost [] >> insert t2 values ('2020-10-09')
|
||||
root[root] @ localhost [] >> select * from t2
|
||||
root[root] @ localhost [] >> alter table t2 add column b int
|
||||
root[root] @ localhost [] >> drop table t2
|
||||
root[root] @ localhost [] >> explain select distinct * from t2
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
|
||||
@@ -3,3 +3,5 @@ CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
|
||||
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
|
||||
DROP TABLE t1;
|
||||
UNINSTALL PLUGIN simple_parser;
|
||||
show status like 'a%status';
|
||||
Variable_name Value
|
||||
|
||||
10
mysql-test/suite/plugins/r/pam_cleartext.result
Normal file
10
mysql-test/suite/plugins/r/pam_cleartext.result
Normal file
@@ -0,0 +1,10 @@
|
||||
install plugin pam soname 'auth_pam.so';
|
||||
create user test_pam identified via pam using 'mariadb_mtr';
|
||||
create user pam_test;
|
||||
grant proxy on pam_test to test_pam;
|
||||
show variables like 'pam%';
|
||||
Variable_name Value
|
||||
pam_use_cleartext_plugin ON
|
||||
drop user test_pam;
|
||||
drop user pam_test;
|
||||
uninstall plugin pam;
|
||||
@@ -38,6 +38,7 @@ drop view v1;
|
||||
create temporary table t2 (a date);
|
||||
insert t2 values ('2020-10-09');
|
||||
select * from t2;
|
||||
alter table t2 add column b int; # MDEV-4565 ALTER on a temporary table generates an audit event
|
||||
drop table t2;
|
||||
|
||||
# internal temp table generates no audit events
|
||||
|
||||
@@ -9,3 +9,9 @@ CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
|
||||
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
|
||||
DROP TABLE t1;
|
||||
UNINSTALL PLUGIN simple_parser;
|
||||
|
||||
#
|
||||
# Bug #69682 - mysqld crashes after uninstall of plugin with "first" status var
|
||||
#
|
||||
show status like 'a%status';
|
||||
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
|
||||
--source include/not_embedded.inc
|
||||
|
||||
if (!$AUTH_PAM_SO) {
|
||||
skip No pam auth plugin;
|
||||
}
|
||||
|
||||
eval install plugin pam soname '$AUTH_PAM_SO';
|
||||
create user test_pam identified via pam using 'mariadb_mtr';
|
||||
create user pam_test;
|
||||
grant proxy on pam_test to test_pam;
|
||||
|
||||
let $plugindir=`SELECT @@global.plugin_dir`;
|
||||
--source pam_init.inc
|
||||
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
|
||||
not very secret challenge
|
||||
|
||||
1
mysql-test/suite/plugins/t/pam_cleartext.opt
Normal file
1
mysql-test/suite/plugins/t/pam_cleartext.opt
Normal file
@@ -0,0 +1 @@
|
||||
--loose-pam-use-cleartext-plugin
|
||||
12
mysql-test/suite/plugins/t/pam_cleartext.test
Normal file
12
mysql-test/suite/plugins/t/pam_cleartext.test
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
--source pam_init.inc
|
||||
|
||||
show variables like 'pam%';
|
||||
|
||||
--error 1
|
||||
--exec echo FAIL | $MYSQL_TEST -u test_pam --plugin-dir=$plugindir
|
||||
|
||||
drop user test_pam;
|
||||
drop user pam_test;
|
||||
uninstall plugin pam;
|
||||
|
||||
14
mysql-test/suite/plugins/t/pam_init.inc
Normal file
14
mysql-test/suite/plugins/t/pam_init.inc
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
--source include/not_embedded.inc
|
||||
|
||||
if (!$AUTH_PAM_SO) {
|
||||
skip No pam auth plugin;
|
||||
}
|
||||
|
||||
eval install plugin pam soname '$AUTH_PAM_SO';
|
||||
create user test_pam identified via pam using 'mariadb_mtr';
|
||||
create user pam_test;
|
||||
grant proxy on pam_test to test_pam;
|
||||
|
||||
let $plugindir=`SELECT @@global.plugin_dir`;
|
||||
|
||||
@@ -33,5 +33,5 @@ SELECT COUNT(*) FROM mysqltest.t1;
|
||||
COUNT(*)
|
||||
2
|
||||
DROP DATABASE mysqltest;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
include/rpl_end.inc
|
||||
|
||||
@@ -313,7 +313,7 @@ CREATE TABLE `t``1` ( `a``` INT PRIMARY KEY) ENGINE=innodb;
|
||||
CREATE TABLE `t``2` ( `b``` INT PRIMARY KEY, `c``` INT NOT NULL,
|
||||
FOREIGN KEY fk (`c```) REFERENCES `t``1`(`a```)) ENGINE=innodb;
|
||||
TRUNCATE `t``1`;
|
||||
ERROR 42000: Cannot truncate a table referenced in a foreign key constraint (`db1``; select 'oops!'`.`t``2`, CONSTRAINT `INNODB_FOREIGN_KEY_NAME` FOREIGN KEY (`c```) REFERENCES `db1``; select 'oops!'`.`t``1` (`a```))
|
||||
ERROR 42000: Cannot truncate a table referenced in a foreign key constraint (`db1``; select 'oops!'`.`t``2`, CONSTRAINT `t``2_ibfk_1` FOREIGN KEY (`c```) REFERENCES `db1``; select 'oops!'`.`t``1` (`a```))
|
||||
DROP TABLE `t``2`;
|
||||
DROP TABLE `t``1`;
|
||||
*** Test correct quoting of DELETE FROM statement binlogged for HEAP table that is emptied due to server restart
|
||||
|
||||
@@ -44,7 +44,7 @@ SELECT COUNT(*) FROM mysqltest.t1;
|
||||
# Cleanup
|
||||
connection master;
|
||||
DROP DATABASE mysqltest;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
sync_slave_with_master;
|
||||
|
||||
# End of test
|
||||
|
||||
@@ -182,7 +182,6 @@ use `db1``; select 'oops!'`;
|
||||
CREATE TABLE `t``1` ( `a``` INT PRIMARY KEY) ENGINE=innodb;
|
||||
CREATE TABLE `t``2` ( `b``` INT PRIMARY KEY, `c``` INT NOT NULL,
|
||||
FOREIGN KEY fk (`c```) REFERENCES `t``1`(`a```)) ENGINE=innodb;
|
||||
--replace_regex /t@[0-9]+_ibfk_[0-9]+/INNODB_FOREIGN_KEY_NAME/
|
||||
--error ER_TRUNCATE_ILLEGAL_FK
|
||||
TRUNCATE `t``1`;
|
||||
DROP TABLE `t``2`;
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
select @@global.aria_pagecache_buffer_size;
|
||||
@@global.aria_pagecache_buffer_size
|
||||
134217728
|
||||
8388608
|
||||
select @@session.aria_pagecache_buffer_size;
|
||||
ERROR HY000: Variable 'aria_pagecache_buffer_size' is a GLOBAL variable
|
||||
show global variables like 'aria_pagecache_buffer_size';
|
||||
Variable_name Value
|
||||
aria_pagecache_buffer_size 134217728
|
||||
aria_pagecache_buffer_size 8388608
|
||||
show session variables like 'aria_pagecache_buffer_size';
|
||||
Variable_name Value
|
||||
aria_pagecache_buffer_size 134217728
|
||||
aria_pagecache_buffer_size 8388608
|
||||
select * from information_schema.global_variables where variable_name='aria_pagecache_buffer_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
ARIA_PAGECACHE_BUFFER_SIZE 134217728
|
||||
ARIA_PAGECACHE_BUFFER_SIZE 8388608
|
||||
select * from information_schema.session_variables where variable_name='aria_pagecache_buffer_size';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
ARIA_PAGECACHE_BUFFER_SIZE 134217728
|
||||
ARIA_PAGECACHE_BUFFER_SIZE 8388608
|
||||
set global aria_pagecache_buffer_size=1;
|
||||
ERROR HY000: Variable 'aria_pagecache_buffer_size' is a read only variable
|
||||
set session aria_pagecache_buffer_size=1;
|
||||
|
||||
@@ -59,7 +59,7 @@ Warnings:
|
||||
Warning 1292 Truncated incorrect binlog_cache_size value: '42949672950'
|
||||
SELECT @@global.binlog_cache_size;
|
||||
@@global.binlog_cache_size
|
||||
42949668864
|
||||
max_binlog_cache_size
|
||||
'Bug: Errors are not coming on assigning invalid values to variable'
|
||||
SET @@global.binlog_cache_size = ON;
|
||||
ERROR 42000: Incorrect argument type to variable 'binlog_cache_size'
|
||||
|
||||
@@ -59,7 +59,7 @@ Warnings:
|
||||
Warning 1292 Truncated incorrect binlog_stmt_cache_size value: '42949672950'
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
@@global.binlog_stmt_cache_size
|
||||
42949668864
|
||||
max_binlog_cache_size
|
||||
'Bug: Errors are not coming on assigning invalid values to variable'
|
||||
SET @@global.binlog_stmt_cache_size = ON;
|
||||
ERROR 42000: Incorrect argument type to variable 'binlog_stmt_cache_size'
|
||||
|
||||
@@ -64,7 +64,7 @@ SELECT @@session.bulk_insert_buffer_size;
|
||||
SET @@global.bulk_insert_buffer_size = 42949672950;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
@@global.bulk_insert_buffer_size
|
||||
42949672950
|
||||
max_bulk_insert_buffer_size
|
||||
SET @@global.bulk_insert_buffer_size = -1024;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect bulk_insert_buffer_size value: '-1024'
|
||||
@@ -80,7 +80,7 @@ ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
|
||||
SET @@session.bulk_insert_buffer_size = 42949672950;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
@@session.bulk_insert_buffer_size
|
||||
42949672950
|
||||
max_bulk_insert_buffer_size
|
||||
SET @@session.bulk_insert_buffer_size = -2;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect bulk_insert_buffer_size value: '-2'
|
||||
|
||||
@@ -73,17 +73,18 @@ Warnings:
|
||||
Warning 1292 Truncated incorrect join_buffer_size value: '42949672951'
|
||||
SELECT @@global.join_buffer_size;
|
||||
@@global.join_buffer_size
|
||||
42949672832
|
||||
max_join_buffer_size
|
||||
SET @@global.join_buffer_size = 1024*1024;
|
||||
SET @@global.join_buffer_size = 65530.34;
|
||||
ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
|
||||
SELECT @@global.join_buffer_size;
|
||||
@@global.join_buffer_size
|
||||
42949672832
|
||||
1048576
|
||||
SET @@global.join_buffer_size = test;
|
||||
ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
|
||||
SELECT @@global.join_buffer_size;
|
||||
@@global.join_buffer_size
|
||||
42949672832
|
||||
1048576
|
||||
SET @@session.join_buffer_size = 0;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect join_buffer_size value: '0'
|
||||
@@ -107,17 +108,18 @@ Warnings:
|
||||
Warning 1292 Truncated incorrect join_buffer_size value: '42949672951'
|
||||
SELECT @@session.join_buffer_size;
|
||||
@@session.join_buffer_size
|
||||
42949672832
|
||||
max_join_buffer_size
|
||||
SET @@session.join_buffer_size = 1024*1024;
|
||||
SET @@session.join_buffer_size = 65530.34;
|
||||
ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
|
||||
SELECT @@session.join_buffer_size;
|
||||
@@session.join_buffer_size
|
||||
42949672832
|
||||
1048576
|
||||
SET @@session.join_buffer_size = test;
|
||||
ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
|
||||
SELECT @@session.join_buffer_size;
|
||||
@@session.join_buffer_size
|
||||
42949672832
|
||||
1048576
|
||||
'#------------------FN_DYNVARS_053_06-----------------------#'
|
||||
SELECT @@global.join_buffer_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
SET @start_value = @@global.max_binlog_cache_size;
|
||||
SELECT @start_value;
|
||||
@start_value
|
||||
18446744073709547520
|
||||
max_binlog_cache_size
|
||||
'#--------------------FN_DYNVARS_072_01------------------------#'
|
||||
SET @@global.max_binlog_cache_size = 5000;
|
||||
Warnings:
|
||||
@@ -9,7 +9,7 @@ Warning 1292 Truncated incorrect max_binlog_cache_size value: '5000'
|
||||
SET @@global.max_binlog_cache_size = DEFAULT;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
@@global.max_binlog_cache_size
|
||||
18446744073709547520
|
||||
max_binlog_cache_size
|
||||
'#---------------------FN_DYNVARS_072_02-------------------------#'
|
||||
SET @@global.max_binlog_cache_size = @start_value;
|
||||
SELECT @@global.max_binlog_cache_size = 4294967295;
|
||||
@@ -56,12 +56,13 @@ Warnings:
|
||||
Warning 1292 Truncated incorrect max_binlog_cache_size value: '100000000000'
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
@@global.max_binlog_cache_size
|
||||
99999997952
|
||||
max_binlog_cache_size
|
||||
SET @@global.max_binlog_cache_size = 1024*1024;
|
||||
SET @@global.max_binlog_cache_size = 10000.01;
|
||||
ERROR 42000: Incorrect argument type to variable 'max_binlog_cache_size'
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
@@global.max_binlog_cache_size
|
||||
99999997952
|
||||
1048576
|
||||
SET @@global.max_binlog_cache_size = -1024;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_binlog_cache_size value: '-1024'
|
||||
@@ -77,7 +78,7 @@ SELECT @@global.max_binlog_cache_size;
|
||||
SET @@global.max_binlog_cache_size = 4294967296;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
@@global.max_binlog_cache_size
|
||||
4294967296
|
||||
max_binlog_cache_size
|
||||
SET @@global.max_binlog_cache_size = 4095;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_binlog_cache_size value: '4095'
|
||||
@@ -149,4 +150,4 @@ ERROR 42S22: Unknown column 'max_binlog_cache_size' in 'field list'
|
||||
SET @@global.max_binlog_cache_size = @start_value;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
@@global.max_binlog_cache_size
|
||||
18446744073709547520
|
||||
max_binlog_cache_size
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
SET @start_value = @@global.max_binlog_stmt_cache_size;
|
||||
SELECT @start_value;
|
||||
@start_value
|
||||
18446744073709547520
|
||||
max_binlog_stmt_cache_size
|
||||
'#--------------------FN_DYNVARS_072_01------------------------#'
|
||||
SET @@global.max_binlog_stmt_cache_size = 5000;
|
||||
Warnings:
|
||||
@@ -9,7 +9,7 @@ Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '5000'
|
||||
SET @@global.max_binlog_stmt_cache_size = DEFAULT;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
@@global.max_binlog_stmt_cache_size
|
||||
18446744073709547520
|
||||
max_binlog_stmt_cache_size
|
||||
'#---------------------FN_DYNVARS_072_02-------------------------#'
|
||||
SET @@global.max_binlog_stmt_cache_size = @start_value;
|
||||
SELECT @@global.max_binlog_stmt_cache_size = 4294967295;
|
||||
@@ -56,12 +56,13 @@ Warnings:
|
||||
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '100000000000'
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
@@global.max_binlog_stmt_cache_size
|
||||
99999997952
|
||||
max_binlog_stmt_cache_size
|
||||
SET @@global.max_binlog_stmt_cache_size = 1024*1024;
|
||||
SET @@global.max_binlog_stmt_cache_size = 10000.01;
|
||||
ERROR 42000: Incorrect argument type to variable 'max_binlog_stmt_cache_size'
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
@@global.max_binlog_stmt_cache_size
|
||||
99999997952
|
||||
1048576
|
||||
SET @@global.max_binlog_stmt_cache_size = -1024;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '-1024'
|
||||
@@ -77,7 +78,7 @@ SELECT @@global.max_binlog_stmt_cache_size;
|
||||
SET @@global.max_binlog_stmt_cache_size = 4294967296;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
@@global.max_binlog_stmt_cache_size
|
||||
4294967296
|
||||
max_binlog_stmt_cache_size
|
||||
SET @@global.max_binlog_stmt_cache_size = 4095;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '4095'
|
||||
@@ -149,4 +150,4 @@ ERROR 42S22: Unknown column 'max_binlog_stmt_cache_size' in 'field list'
|
||||
SET @@global.max_binlog_stmt_cache_size = @start_value;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
@@global.max_binlog_stmt_cache_size
|
||||
18446744073709547520
|
||||
max_binlog_stmt_cache_size
|
||||
|
||||
@@ -66,17 +66,18 @@ SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = 4294967296;
|
||||
SELECT @@global.sort_buffer_size;
|
||||
@@global.sort_buffer_size
|
||||
4294967296
|
||||
max_sort_buffer_size
|
||||
SET @@global.sort_buffer_size = 1024*1024;
|
||||
SET @@global.sort_buffer_size = 65530.34;
|
||||
ERROR 42000: Incorrect argument type to variable 'sort_buffer_size'
|
||||
SELECT @@global.sort_buffer_size;
|
||||
@@global.sort_buffer_size
|
||||
4294967296
|
||||
1048576
|
||||
SET @@global.sort_buffer_size = test;
|
||||
ERROR 42000: Incorrect argument type to variable 'sort_buffer_size'
|
||||
SELECT @@global.sort_buffer_size;
|
||||
@@global.sort_buffer_size
|
||||
4294967296
|
||||
1048576
|
||||
SET @@session.sort_buffer_size = 32775;
|
||||
SELECT @@session.sort_buffer_size;
|
||||
@@session.sort_buffer_size
|
||||
@@ -87,10 +88,10 @@ SELECT @@session.sort_buffer_size;
|
||||
1024
|
||||
SET @@session.sort_buffer_size = 65530.34;
|
||||
ERROR 42000: Incorrect argument type to variable 'sort_buffer_size'
|
||||
SET @@session.sort_buffer_size = 4294967296;
|
||||
SET @@session.sort_buffer_size = 4294967295;
|
||||
SELECT @@session.sort_buffer_size;
|
||||
@@session.sort_buffer_size
|
||||
4294967296
|
||||
4294967295
|
||||
SET @@session.sort_buffer_size = test;
|
||||
ERROR 42000: Incorrect argument type to variable 'sort_buffer_size'
|
||||
'#------------------FN_DYNVARS_151_06-----------------------#'
|
||||
|
||||
@@ -81,6 +81,7 @@ SET @@global.binlog_cache_size = 10000.01;
|
||||
SET @@global.binlog_cache_size = -1024;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
SET @@global.binlog_cache_size = 42949672950;
|
||||
--replace_result 4294963200 max_binlog_cache_size 42949668864 max_binlog_cache_size
|
||||
SELECT @@global.binlog_cache_size;
|
||||
echo 'Bug: Errors are not coming on assigning invalid values to variable';
|
||||
|
||||
|
||||
@@ -81,6 +81,7 @@ SET @@global.binlog_stmt_cache_size = 10000.01;
|
||||
SET @@global.binlog_stmt_cache_size = -1024;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
SET @@global.binlog_stmt_cache_size = 42949672950;
|
||||
--replace_result 4294963200 max_binlog_cache_size 42949668864 max_binlog_cache_size
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
echo 'Bug: Errors are not coming on assigning invalid values to variable';
|
||||
|
||||
|
||||
@@ -99,7 +99,10 @@ SELECT @@session.bulk_insert_buffer_size;
|
||||
# Change the value of bulk_insert_buffer_size to an invalid value #
|
||||
###################################################################
|
||||
|
||||
--disable_warnings
|
||||
SET @@global.bulk_insert_buffer_size = 42949672950;
|
||||
--enable_warnings
|
||||
--replace_result 4294967295 max_bulk_insert_buffer_size 42949672950 max_bulk_insert_buffer_size
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
SET @@global.bulk_insert_buffer_size = -1024;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
@@ -111,7 +114,10 @@ SET @@global.bulk_insert_buffer_size = ON;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.bulk_insert_buffer_size = 429496.10;
|
||||
|
||||
--disable_warnings
|
||||
SET @@session.bulk_insert_buffer_size = 42949672950;
|
||||
--enable_warnings
|
||||
--replace_result 4294967295 max_bulk_insert_buffer_size 42949672950 max_bulk_insert_buffer_size
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
SET @@session.bulk_insert_buffer_size = -2;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
|
||||
@@ -88,7 +88,9 @@ SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = 127;
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = 42949672951;
|
||||
--replace_result 42949672832 max_join_buffer_size 4294967168 max_join_buffer_size
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = 1024*1024;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.join_buffer_size = 65530.34;
|
||||
@@ -104,7 +106,9 @@ SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = 127;
|
||||
SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = 42949672951;
|
||||
--replace_result 42949672832 max_join_buffer_size 4294967168 max_join_buffer_size
|
||||
SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = 1024*1024;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.join_buffer_size = 65530.34;
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
########################################################################
|
||||
|
||||
SET @start_value = @@global.max_binlog_cache_size;
|
||||
--replace_result 18446744073709547520 max_binlog_cache_size 4294963200 max_binlog_cache_size
|
||||
SELECT @start_value;
|
||||
|
||||
|
||||
@@ -48,6 +49,7 @@ SELECT @start_value;
|
||||
|
||||
SET @@global.max_binlog_cache_size = 5000;
|
||||
SET @@global.max_binlog_cache_size = DEFAULT;
|
||||
--replace_result 18446744073709547520 max_binlog_cache_size 4294963200 max_binlog_cache_size
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
|
||||
|
||||
@@ -84,7 +86,9 @@ SELECT @@global.max_binlog_cache_size;
|
||||
SET @@global.max_binlog_cache_size = -1;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
SET @@global.max_binlog_cache_size = 100000000000;
|
||||
--replace_result 99999997952 max_binlog_cache_size 4294963200 max_binlog_cache_size
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
SET @@global.max_binlog_cache_size = 1024*1024;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_binlog_cache_size = 10000.01;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
@@ -92,7 +96,10 @@ SET @@global.max_binlog_cache_size = -1024;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
SET @@global.max_binlog_cache_size = 1024;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
--disable_warnings
|
||||
SET @@global.max_binlog_cache_size = 4294967296;
|
||||
--enable_warnings
|
||||
--replace_result 4294963200 max_binlog_cache_size 4294967296 max_binlog_cache_size
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
SET @@global.max_binlog_cache_size = 4095;
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
@@ -175,6 +182,7 @@ SELECT max_binlog_cache_size = @@session.max_binlog_cache_size;
|
||||
##############################
|
||||
|
||||
SET @@global.max_binlog_cache_size = @start_value;
|
||||
--replace_result 4294963200 max_binlog_cache_size 18446744073709547520 max_binlog_cache_size
|
||||
SELECT @@global.max_binlog_cache_size;
|
||||
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
##############################################################################
|
||||
|
||||
SET @start_value = @@global.max_binlog_stmt_cache_size;
|
||||
--replace_result 18446744073709547520 max_binlog_stmt_cache_size 4294963200 max_binlog_stmt_cache_size
|
||||
SELECT @start_value;
|
||||
|
||||
|
||||
@@ -49,6 +50,7 @@ SELECT @start_value;
|
||||
|
||||
SET @@global.max_binlog_stmt_cache_size = 5000;
|
||||
SET @@global.max_binlog_stmt_cache_size = DEFAULT;
|
||||
--replace_result 18446744073709547520 max_binlog_stmt_cache_size 4294963200 max_binlog_stmt_cache_size
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
|
||||
|
||||
@@ -85,7 +87,9 @@ SELECT @@global.max_binlog_stmt_cache_size;
|
||||
SET @@global.max_binlog_stmt_cache_size = -1;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
SET @@global.max_binlog_stmt_cache_size = 100000000000;
|
||||
--replace_result 99999997952 max_binlog_stmt_cache_size 4294963200 max_binlog_stmt_cache_size
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
SET @@global.max_binlog_stmt_cache_size = 1024*1024;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_binlog_stmt_cache_size = 10000.01;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
@@ -93,7 +97,10 @@ SET @@global.max_binlog_stmt_cache_size = -1024;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
SET @@global.max_binlog_stmt_cache_size = 1024;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
--disable_warnings
|
||||
SET @@global.max_binlog_stmt_cache_size = 4294967296;
|
||||
--enable_warnings
|
||||
--replace_result 4294963200 max_binlog_stmt_cache_size 4294967296 max_binlog_stmt_cache_size
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
SET @@global.max_binlog_stmt_cache_size = 4095;
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
@@ -176,6 +183,7 @@ SELECT max_binlog_stmt_cache_size = @@session.max_binlog_stmt_cache_size;
|
||||
##############################
|
||||
|
||||
SET @@global.max_binlog_stmt_cache_size = @start_value;
|
||||
--replace_result 4294963200 max_binlog_stmt_cache_size 18446744073709547520 max_binlog_stmt_cache_size
|
||||
SELECT @@global.max_binlog_stmt_cache_size;
|
||||
|
||||
|
||||
|
||||
@@ -120,7 +120,10 @@ SET @@global.sort_buffer_size = -1024;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = 4294967296;
|
||||
--replace_result 4294967296 max_sort_buffer_size 4294967295 max_sort_buffer_size
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = 1024*1024;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.sort_buffer_size = 65530.34;
|
||||
SELECT @@global.sort_buffer_size;
|
||||
@@ -136,7 +139,7 @@ eval
|
||||
SELECT @@session.sort_buffer_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.sort_buffer_size = 65530.34;
|
||||
SET @@session.sort_buffer_size = 4294967296;
|
||||
SET @@session.sort_buffer_size = 4294967295;
|
||||
SELECT @@session.sort_buffer_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
|
||||
@@ -187,7 +187,11 @@ ts TIMESTAMP,
|
||||
tsv TIMESTAMP AS (ADDDATE(ts, INTERVAL 1 DAY)) VIRTUAL
|
||||
) ENGINE=MyISAM;
|
||||
INSERT INTO t1 (tsv) VALUES (DEFAULT);
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '0000-00-00'
|
||||
INSERT DELAYED INTO t1 (tsv) VALUES (DEFAULT);
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '0000-00-00'
|
||||
FLUSH TABLES;
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
|
||||
Reference in New Issue
Block a user