Skip to content

Commit 4272f07

Browse files
committed
Merge branch 'mysql-5.7' into mysql-5.7-bug20595292
2 parents 6b51beb + 6053909 commit 4272f07

File tree

124 files changed

+3450
-643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+3450
-643
lines changed

include/sslopt-longopts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"If set to ON, this option enforces that SSL is established before client "
2020
"attempts to authenticate to the server. To disable client SSL capabilities "
2121
"use --ssl=OFF.",
22-
&opt_use_ssl, &opt_use_ssl, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
22+
&opt_use_ssl, &opt_use_ssl, 0, GET_BOOL, OPT_ARG, 1, 0, 0, 0, 0, 0},
2323
{"ssl-ca", OPT_SSL_CA,
2424
"CA file in PEM format.",
2525
&opt_ssl_ca, &opt_ssl_ca, 0, GET_STR, REQUIRED_ARG,

man/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -26,6 +26,8 @@ IF(MAN1_FILES)
2626
IF(MAN1_NDB AND NOT VERSION MATCHES "-ndb-")
2727
LIST(REMOVE_ITEM MAN1_FILES ${MAN1_NDB})
2828
ENDIF()
29+
INSTALL(FILES mysqltest.1 DESTINATION ${INSTALL_MANDIR}/man1
30+
COMPONENT Test)
2931
INSTALL(FILES ${MAN1_FILES} DESTINATION ${INSTALL_MANDIR}/man1
3032
COMPONENT ManPages)
3133
ENDIF()

mysql-test/r/derived.result

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,13 +2549,12 @@ a b a b
25492549
explain SELECT *
25502550
FROM t1 JOIN (SELECT a, (SELECT b) AS b FROM t2) AS dt ON t1.a=dt.a;
25512551
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2552-
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 2 100.00 Using where
2553-
1 PRIMARY <derived2> NULL ref <auto_key0> <auto_key0> 5 test.t1.a 2 100.00 NULL
2554-
2 DERIVED t2 NULL ALL NULL NULL NULL NULL 2 100.00 NULL
2552+
1 PRIMARY t1 NULL ALL NULL NULL NULL NULL 2 100.00 NULL
2553+
1 PRIMARY t2 NULL ALL NULL NULL NULL NULL 2 50.00 Using where; Using join buffer (Block Nested Loop)
25552554
3 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL NULL No tables used
25562555
Warnings:
25572556
Note 1276 Field or reference 'test.t2.b' of SELECT #3 was resolved in SELECT #2
2558-
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`dt`.`a` AS `a`,`dt`.`b` AS `b` from `test`.`t1` join (/* select#2 */ select `test`.`t2`.`a` AS `a`,(/* select#3 */ select `test`.`t2`.`b`) AS `b` from `test`.`t2`) `dt` where (`dt`.`a` = `test`.`t1`.`a`)
2557+
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,(/* select#3 */ select `test`.`t2`.`b`) AS `b` from `test`.`t1` join `test`.`t2` where (`test`.`t2`.`a` = `test`.`t1`.`a`)
25592558
SET @optimizer_switch_saved= @@optimizer_switch;
25602559
SET @@optimizer_switch="derived_merge=off";
25612560
SELECT *

mysql-test/r/grant_alter_user.result

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,3 +984,28 @@ SET GLOBAL log_output= @old_log_output;
984984

985985
End of 5.7 tests!
986986

987+
988+
Bug #20600865: IDENTIFIED BY PASSWORD IS NOT DEPRECATED FOR
989+
ALTER USER BUT DOESN\'T WORK
990+
991+
CREATE USER u1;
992+
ALTER USER u1 IDENTIFIED BY PASSWORD '*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF';
993+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'' at line 1
994+
ALTER USER u1 IDENTIFIED BY PASSWORD '*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
995+
PASSWORD EXPIRE;
996+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
997+
PASSWORD EXPIRE' at line 1
998+
ALTER USER u1 IDENTIFIED BY PASSWORD '*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
999+
WITH MAX_QUERIES_PER_HOUR 2 MAX_USER_CONNECTIONS 2;
1000+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
1001+
WITH MAX_QUERIES_PER_HOUR 2 MA' at line 1
1002+
ALTER USER u1 IDENTIFIED BY PASSWORD '*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
1003+
REQUIRE CIPHER "DHE-RSA-AES256-SHA" AND
1004+
SUBJECT "/C=SE/ST=Stockholm/L=Stockholm/O=Oracle/OU=MySQL/CN=Client";
1005+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
1006+
REQUIRE CIPHER "DHE-RSA-AES256' at line 1
1007+
ALTER USER u1 IDENTIFIED BY PASSWORD '*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
1008+
PASSWORD EXPIRE DEFAULT;
1009+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''*67092806AE91BFB6BE72DE6C7BE2B7CCA8CFA9DF'
1010+
PASSWORD EXPIRE DEFAULT' at line 1
1011+
DROP USER u1;

mysql-test/r/mysql_ssl_default.result

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# WL#7712 Support SSL by default in libmysql
3+
#
4+
# verify that mysql default connect with ssl channel
5+
Variable_name Value
6+
Ssl_cipher DHE-RSA-AES256-SHA
7+
# verify that mysql --skip-ssl connect with unencrypted channel
8+
Variable_name Value
9+
Ssl_cipher
10+
# verify that mysql --ssl=0 connect with unencrypted channel
11+
Variable_name Value
12+
Ssl_cipher
13+
# verify that mysql --ssl=1 connect with ssl channel
14+
Variable_name Value
15+
Ssl_cipher DHE-RSA-AES256-SHA
16+
CREATE USER u1@localhost IDENTIFIED BY 'secret' REQUIRE SSL;
17+
# verify that mysqladmin default connect with ssl channel
18+
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
19+
mysqld is alive
20+
# verify that mysql_show default connect with ssl channel
21+
mysqlshow: [Warning] Using a password on the command line interface can be insecure.
22+
+--------------------+
23+
| Databases |
24+
+--------------------+
25+
| information_schema |
26+
| test |
27+
+--------------------+
28+
DROP USER u1@localhost;

mysql-test/r/ps_ddl.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,10 +2252,14 @@ create table t1 (a int);
22522252
prepare stmt from "show variables where (1) in (select * from t1)";
22532253
execute stmt;
22542254
Variable_name Value
2255+
Warnings:
2256+
Warning 1681 '@@SESSION.GTID_EXECUTED' is deprecated and will be removed in a future release.
22552257
drop table t1;
22562258
create table t1 (x int);
22572259
execute stmt;
22582260
Variable_name Value
2261+
Warnings:
2262+
Warning 1681 '@@SESSION.GTID_EXECUTED' is deprecated and will be removed in a future release.
22592263
drop table t1;
22602264
deallocate prepare stmt;
22612265
#

mysql-test/r/sp-error.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ CREATE PROCEDURE bug20953()
12321232
CREATE VIEW v AS SELECT i FROM t1 PROCEDURE ANALYSE();
12331233
ERROR HY000: View's SELECT contains a 'PROCEDURE' clause
12341234
CREATE PROCEDURE bug20953() CREATE VIEW v AS SELECT 1 FROM (SELECT 1) AS d1;
1235-
ERROR HY000: View's SELECT contains a subquery in the FROM clause
1235+
DROP PROCEDURE bug20953;
12361236
CREATE PROCEDURE bug20953(i INT) CREATE VIEW v AS SELECT i;
12371237
ERROR HY000: View's SELECT contains a variable or parameter
12381238
CREATE PROCEDURE bug20953()

0 commit comments

Comments
 (0)