Skip to content

Commit bc12d5f

Browse files
committed
MDEV-6066: Merge new defaults from 5.6 and 5.7
cosmetic fixes. test fixes.
1 parent e3982ce commit bc12d5f

20 files changed

+81
-79
lines changed

include/my_getopt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ C_MODE_START
3939
#define GET_DOUBLE 14
4040
#define GET_FLAGSET 15
4141

42-
#define GET_ASK_ADDR 128
43-
#define GET_AUTO 64
44-
#define GET_TYPE_MASK 63
42+
#define GET_ASK_ADDR 128
43+
#define GET_AUTO 64
44+
#define GET_TYPE_MASK 63
4545

4646
/**
4747
Enumeration of the my_option::arg_type attributes.

mysql-test/mysql-test-run.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4434,6 +4434,7 @@ ($$)
44344434
qr|Failed to setup SSL|,
44354435
qr|SSL error: Failed to set ciphers to use|,
44364436
qr/Plugin 'InnoDB' will be forced to shutdown/,
4437+
qr|Could not increase number of max_open_files to more than|,
44374438
);
44384439

44394440
my $matched_lines= [];

mysql-test/r/grant_lowercase_fs.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
create database db1;
2+
create user user_1@localhost;
3+
create user USER_1@localhost;
24
GRANT CREATE ON db1.* to user_1@localhost;
35
GRANT SELECT ON db1.* to USER_1@localhost;
46
CREATE TABLE t1(f1 int);

mysql-test/r/mysqld--help.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,9 +1415,9 @@ sync-master-info 10000
14151415
sync-relay-log 10000
14161416
sync-relay-log-info 10000
14171417
sysdate-is-now FALSE
1418-
table-cache 2000
1418+
table-cache 431
14191419
table-definition-cache 400
1420-
table-open-cache 2000
1420+
table-open-cache 431
14211421
tc-heuristic-recover COMMIT
14221422
thread-cache-size 0
14231423
thread-pool-idle-timeout 60

mysql-test/r/mysqldump.result

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ UNLOCK TABLES;
418418
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
419419
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
420420

421-
set global sql_mode='';
421+
set global sql_mode=default;
422422
drop table t1;
423423
#
424424
# Bug#2705 mysqldump --tab extra output
@@ -2717,7 +2717,7 @@ a2
27172717
SHOW TRIGGERS;
27182718
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
27192719
testref INSERT test1 BEGIN
2720-
INSERT INTO test2 SET a2 = NEW.a1; END BEFORE NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
2720+
INSERT INTO test2 SET a2 = NEW.a1; END BEFORE NULL NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
27212721
SELECT * FROM `test1`;
27222722
a1
27232723
1
@@ -2789,7 +2789,7 @@ UNLOCK TABLES;
27892789
/*!50003 SET character_set_results = latin1 */ ;
27902790
/*!50003 SET collation_connection = latin1_swedish_ci */ ;
27912791
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2792-
/*!50003 SET sql_mode = '' */ ;
2792+
/*!50003 SET sql_mode = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
27932793
DELIMITER ;;
27942794
CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11)
27952795
RETURN a+b ;;
@@ -2806,7 +2806,7 @@ DELIMITER ;
28062806
/*!50003 SET character_set_results = latin1 */ ;
28072807
/*!50003 SET collation_connection = latin1_swedish_ci */ ;
28082808
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2809-
/*!50003 SET sql_mode = '' */ ;
2809+
/*!50003 SET sql_mode = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
28102810
DELIMITER ;;
28112811
CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin1
28122812
begin
@@ -2843,7 +2843,7 @@ DELIMITER ;
28432843
/*!50003 SET character_set_results = latin1 */ ;
28442844
/*!50003 SET collation_connection = latin1_swedish_ci */ ;
28452845
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2846-
/*!50003 SET sql_mode = '' */ ;
2846+
/*!50003 SET sql_mode = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
28472847
DELIMITER ;;
28482848
CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT)
28492849
BEGIN SELECT a+b INTO c; end ;;
@@ -2860,7 +2860,7 @@ DELIMITER ;
28602860
/*!50003 SET character_set_results = latin1 */ ;
28612861
/*!50003 SET collation_connection = latin1_swedish_ci */ ;
28622862
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
2863-
/*!50003 SET sql_mode = '' */ ;
2863+
/*!50003 SET sql_mode = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
28642864
DELIMITER ;;
28652865
CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc2`(OUT a INT)
28662866
BEGIN
@@ -3849,7 +3849,7 @@ create procedure mysqldump_test_db.sp1() select 'hello';
38493849
/*!50003 SET character_set_results = latin1 */ ;
38503850
/*!50003 SET collation_connection = latin1_swedish_ci */ ;
38513851
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
3852-
/*!50003 SET sql_mode = '' */ ;
3852+
/*!50003 SET sql_mode = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
38533853
DELIMITER ;;
38543854
CREATE DEFINER=`user1`@`%` PROCEDURE `sp1`()
38553855
select 'hello' ;;

mysql-test/suite/roles/grant_role_auto_create_user.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ ERROR 42000: You are not allowed to create a user with GRANT
6363
drop user foo@localhost;
6464
drop user bar@localhost;
6565
drop role auto_create;
66+
drop user auto_create;
6667
drop database db;

mysql-test/suite/roles/grant_role_auto_create_user.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ grant auto_create to foo2@localhost identified by 'pass';
119119
drop user foo@localhost;
120120
drop user bar@localhost;
121121
drop role auto_create;
122+
drop user auto_create;
122123
drop database db;
123-

mysql-test/suite/sys_vars/r/sysvars_server_notembedded,32bit.rdiff

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
NUMERIC_MIN_VALUE 1
2020
NUMERIC_MAX_VALUE 65535
2121
@@ -85,7 +85,7 @@
22-
GLOBAL_VALUE_ORIGIN COMPILE-TIME
22+
GLOBAL_VALUE_ORIGIN AUTO
2323
DEFAULT_VALUE 150
2424
VARIABLE_SCOPE GLOBAL
2525
-VARIABLE_TYPE BIGINT UNSIGNED
2626
+VARIABLE_TYPE INT UNSIGNED
27-
VARIABLE_COMMENT The number of outstanding connection requests MySQL can have. This comes into play when the main MySQL thread gets very many connection requests in a very short time
28-
NUMERIC_MIN_VALUE 1
27+
VARIABLE_COMMENT The number of outstanding connection requests MariaDB can have. This comes into play when the main MySQL thread gets very many connection requests in a very short time
28+
NUMERIC_MIN_VALUE 0
2929
NUMERIC_MAX_VALUE 65535
3030
@@ -144,7 +144,7 @@
3131
VARIABLE_TYPE BIGINT UNSIGNED
@@ -243,7 +243,7 @@
243243
NUMERIC_MIN_VALUE 0
244244
NUMERIC_MAX_VALUE 255
245245
@@ -1275,7 +1275,7 @@
246-
GLOBAL_VALUE_ORIGIN COMPILE-TIME
246+
GLOBAL_VALUE_ORIGIN AUTO
247247
DEFAULT_VALUE 128
248248
VARIABLE_SCOPE GLOBAL
249249
-VARIABLE_TYPE BIGINT UNSIGNED
@@ -278,6 +278,15 @@
278278
VARIABLE_COMMENT Controls what join operations can be executed with join buffers. Odd numbers are used for plain join buffers while even numbers are used for linked buffers
279279
NUMERIC_MIN_VALUE 0
280280
NUMERIC_MAX_VALUE 8
281+
@@ -1474,7 +1474,7 @@
282+
VARIABLE_TYPE BIGINT UNSIGNED
283+
VARIABLE_COMMENT The size of the buffer used for index blocks for MyISAM tables. Increase this to get better index handling (for all reads and multiple writes) to as much as you can afford
284+
NUMERIC_MIN_VALUE 0
285+
-NUMERIC_MAX_VALUE 18446744073709551615
286+
+NUMERIC_MAX_VALUE 4294967295
287+
NUMERIC_BLOCK_SIZE 4096
288+
ENUM_VALUE_LIST NULL
289+
READ_ONLY NO
281290
@@ -1695,7 +1695,7 @@
282291
GLOBAL_VALUE_ORIGIN COMPILE-TIME
283292
DEFAULT_VALUE 31536000
@@ -307,7 +316,7 @@
307316
NUMERIC_MAX_VALUE 4294967295
308317
@@ -1919,7 +1919,7 @@
309318
GLOBAL_VALUE_ORIGIN COMPILE-TIME
310-
DEFAULT_VALUE 1048576
319+
DEFAULT_VALUE 4194304
311320
VARIABLE_SCOPE SESSION
312321
-VARIABLE_TYPE BIGINT UNSIGNED
313322
+VARIABLE_TYPE INT UNSIGNED
@@ -1162,7 +1171,7 @@
11621171
NUMERIC_MIN_VALUE 0
11631172
NUMERIC_MAX_VALUE 524288
11641173
@@ -4467,7 +4467,7 @@
1165-
GLOBAL_VALUE_ORIGIN COMPILE-TIME
1174+
GLOBAL_VALUE_ORIGIN AUTO
11661175
DEFAULT_VALUE 400
11671176
VARIABLE_SCOPE GLOBAL
11681177
-VARIABLE_TYPE BIGINT UNSIGNED
@@ -1172,7 +1181,7 @@
11721181
NUMERIC_MAX_VALUE 524288
11731182
@@ -4481,7 +4481,7 @@
11741183
GLOBAL_VALUE_ORIGIN COMPILE-TIME
1175-
DEFAULT_VALUE 400
1184+
DEFAULT_VALUE 2000
11761185
VARIABLE_SCOPE GLOBAL
11771186
-VARIABLE_TYPE BIGINT UNSIGNED
11781187
+VARIABLE_TYPE INT UNSIGNED

mysql-test/t/grant_lowercase_fs.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Bug#41049 does syntax "grant" case insensitive?
77
#
88
create database db1;
9+
create user user_1@localhost;
10+
create user USER_1@localhost;
911
GRANT CREATE ON db1.* to user_1@localhost;
1012
GRANT SELECT ON db1.* to USER_1@localhost;
1113

mysql-test/t/mysqldump.test

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
call mtr.add_suppression("@003f.frm' \\(errno: 22\\)");
2-
2+
#select * from mysql.user;
3+
#checksum table mysql.user;
34
# Embedded server doesn't support external clients
45
--source include/not_embedded.inc
56

@@ -139,7 +140,7 @@ create table t1(a int);
139140
set global sql_mode='ANSI_QUOTES';
140141
--exec $MYSQL_DUMP --comments=0 test
141142
--exec $MYSQL_DUMP --comments=0 --compatible=ansi test
142-
set global sql_mode='';
143+
set global sql_mode=default;
143144
drop table t1;
144145

145146
--echo #
@@ -2488,3 +2489,5 @@ drop table t1;
24882489
select * from t1;
24892490
drop table t1;
24902491
--remove_file $MYSQLTEST_VARDIR/tmp/mysqldump-test.out
2492+
#select * from mysql.user;
2493+
#checksum table mysql.user;

0 commit comments

Comments
 (0)