Skip to content

Commit a6dce26

Browse files
author
Arun Kuruvila
committed
Bug#29287785: PASSWORD IS NOT UPDATED WITHOUT ERRORS WHEN
SQL MODE IS PAD_CHAR_TO_FULL_LENGTH Post push patch to fix pb2 failure. RB#21800
1 parent d35d409 commit a6dce26

File tree

4 files changed

+30
-28
lines changed

4 files changed

+30
-28
lines changed

mysql-test/r/sql_mode.result

-14
Original file line numberDiff line numberDiff line change
@@ -836,17 +836,3 @@ begin return 1; end utf8 utf8_general_ci latin1_swedish_ci
836836
# Clean-up.
837837
DROP PROCEDURE p1;
838838
DROP FUNCTION f1;
839-
#
840-
# Bug#29287785: PASSWORD IS NOT UPDATED WITHOUT ERRORS WHEN
841-
# SQL MODE IS PAD_CHAR_TO_FULL_LENGTH
842-
#
843-
CREATE USER 'user1'@'localhost';
844-
SET sql_mode= 'PAD_CHAR_TO_FULL_LENGTH';
845-
SET PASSWORD FOR 'user1'@'localhost'= PASSWORD('abc');
846-
Warnings:
847-
Warning 1287 'SET PASSWORD FOR <user> = PASSWORD('<plaintext_password>')' is deprecated and will be removed in a future release. Please use SET PASSWORD FOR <user> = '<plaintext_password>' instead
848-
SELECT authentication_string FROM mysql.user WHERE user= 'user1';
849-
authentication_string
850-
*0D3CED9BEC10A777AEC23CCC353A8C08A633045E
851-
DROP USER 'user1'@'localhost';
852-
SET sql_mode= DEFAULT;

mysql-test/r/sql_mode_default.result

+16
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,19 @@ Warning 3135 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO'
6262

6363
End of wl#8326 tests!
6464

65+
#
66+
# Bug#29287785: PASSWORD IS NOT UPDATED WITHOUT ERRORS WHEN
67+
# SQL MODE IS PAD_CHAR_TO_FULL_LENGTH
68+
#
69+
CREATE USER 'user1'@'localhost';
70+
SET sql_mode= 'PAD_CHAR_TO_FULL_LENGTH';
71+
SET PASSWORD FOR 'user1'@'localhost'= PASSWORD('abc');
72+
Warnings:
73+
Warning 1287 'SET PASSWORD FOR <user> = PASSWORD('<plaintext_password>')' is deprecated and will be removed in a future release. Please use SET PASSWORD FOR <user> = '<plaintext_password>' instead
74+
SELECT authentication_string FROM mysql.user WHERE user= 'user1';
75+
authentication_string
76+
*0D3CED9BEC10A777AEC23CCC353A8C08A633045E
77+
DROP USER 'user1'@'localhost';
78+
SET sql_mode= DEFAULT;
79+
Warnings:
80+
Warning 3135 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.

mysql-test/t/sql_mode.test

-14
Original file line numberDiff line numberDiff line change
@@ -635,17 +635,3 @@ SHOW CREATE FUNCTION f1;
635635
--echo # Clean-up.
636636
DROP PROCEDURE p1;
637637
DROP FUNCTION f1;
638-
639-
--echo #
640-
--echo # Bug#29287785: PASSWORD IS NOT UPDATED WITHOUT ERRORS WHEN
641-
--echo # SQL MODE IS PAD_CHAR_TO_FULL_LENGTH
642-
--echo #
643-
644-
CREATE USER 'user1'@'localhost';
645-
SET sql_mode= 'PAD_CHAR_TO_FULL_LENGTH';
646-
SET PASSWORD FOR 'user1'@'localhost'= PASSWORD('abc');
647-
SELECT authentication_string FROM mysql.user WHERE user= 'user1';
648-
649-
#Cleanup
650-
DROP USER 'user1'@'localhost';
651-
SET sql_mode= DEFAULT;

mysql-test/t/sql_mode_default.test

+14
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,17 @@ SET sql_mode = default;
8080
--echo
8181
--echo End of wl#8326 tests!
8282
--echo
83+
84+
--echo #
85+
--echo # Bug#29287785: PASSWORD IS NOT UPDATED WITHOUT ERRORS WHEN
86+
--echo # SQL MODE IS PAD_CHAR_TO_FULL_LENGTH
87+
--echo #
88+
89+
CREATE USER 'user1'@'localhost';
90+
SET sql_mode= 'PAD_CHAR_TO_FULL_LENGTH';
91+
SET PASSWORD FOR 'user1'@'localhost'= PASSWORD('abc');
92+
SELECT authentication_string FROM mysql.user WHERE user= 'user1';
93+
94+
#Cleanup
95+
DROP USER 'user1'@'localhost';
96+
SET sql_mode= DEFAULT;

0 commit comments

Comments
 (0)