Skip to content

Commit edb311a

Browse files
committed
Merge 10.5 into 10.6
2 parents 5c21cba + bc02005 commit edb311a

File tree

7 files changed

+45
-43
lines changed

7 files changed

+45
-43
lines changed

mysql-test/main/func_crypt.result

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
9292
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
9393
Warnings:
9494
Note 1003 select password('idkfa ') AS `password('idkfa ')`,old_password('idkfa') AS `old_password('idkfa')`
95+
CREATE VIEW v1 AS SELECT ENCRYPT("dhgdhgd");
96+
SELECT * FROM v1;
97+
drop view v1;
98+
CREATE VIEW v1 AS SELECT SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1);
99+
SELECT * FROM v1;
100+
SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1)
101+
dkjhgd
102+
drop view v1;
95103
select encrypt('1234','_.');
96104
encrypt('1234','_.')
97105
#
@@ -105,6 +113,13 @@ SELECT OLD_PASSWORD(c1), PASSWORD(c1) FROM t1;
105113
OLD_PASSWORD(c1) PASSWORD(c1)
106114
77023ffe214c04ff *82E58A2C08AAFE72C8EB523069CD8ADB33F78F58
107115
DROP TABLE t1;
116+
drop table if exists t1;
117+
create table t1 (f1 smallint(6) default null, f2 mediumtext character set utf8)
118+
engine=myisam default charset=latin1;
119+
insert into t1 values (null,'contraction\'s');
120+
insert into t1 values (-15818,'requirement\'s');
121+
select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a;
122+
drop table t1;
108123
# End of 5.0 tests
109124
#
110125
# Start of 10.0 tests

mysql-test/main/func_crypt.test

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
-- source include/have_crypt.inc
2+
# MDEV-27964 The function ENCRYPT() causes SIGSEGV in WITH_MSAN builds
3+
-- source include/not_msan.inc
24

35
--disable_warnings
46
drop table if exists t1;
@@ -51,6 +53,18 @@ select old_password(' i d k f a ');
5153

5254
explain extended select password('idkfa '), old_password('idkfa');
5355

56+
#
57+
# using encrypt & substring_index in view (Bug#7024)
58+
#
59+
CREATE VIEW v1 AS SELECT ENCRYPT("dhgdhgd");
60+
disable_result_log;
61+
SELECT * FROM v1;
62+
enable_result_log;
63+
drop view v1;
64+
CREATE VIEW v1 AS SELECT SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1);
65+
SELECT * FROM v1;
66+
drop view v1;
67+
5468
#
5569
# Bug #13619: Crash on FreeBSD with salt like '_.'
5670
#
@@ -69,6 +83,21 @@ INSERT INTO t1 VALUES (REPEAT('a', 1024));
6983
SELECT OLD_PASSWORD(c1), PASSWORD(c1) FROM t1;
7084
DROP TABLE t1;
7185

86+
#
87+
# Bug#44365 valgrind warnings with encrypt() function
88+
#
89+
--disable_warnings
90+
drop table if exists t1;
91+
--enable_warnings
92+
create table t1 (f1 smallint(6) default null, f2 mediumtext character set utf8)
93+
engine=myisam default charset=latin1;
94+
insert into t1 values (null,'contraction\'s');
95+
insert into t1 values (-15818,'requirement\'s');
96+
--disable_result_log
97+
select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a;
98+
--enable_result_log
99+
drop table t1;
100+
72101
--echo # End of 5.0 tests
73102
--echo #
74103
--echo # Start of 10.0 tests

mysql-test/main/func_encrypt.result

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,6 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
183183
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
184184
Warnings:
185185
Note 1003 select des_decrypt(des_encrypt('hello',4),'password2') AS `des_decrypt(des_encrypt("hello",4),'password2')`,des_decrypt(des_encrypt('hello','hidden')) AS `des_decrypt(des_encrypt("hello","hidden"))`
186-
drop table if exists t1;
187-
create table t1 (f1 smallint(6) default null, f2 mediumtext character set utf8)
188-
engine=myisam default charset=latin1;
189-
insert into t1 values (null,'contraction\'s');
190-
insert into t1 values (-15818,'requirement\'s');
191-
select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a;
192-
drop table t1;
193186
#
194187
# Start of 10.1 tests
195188
#

mysql-test/main/func_encrypt.test

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,6 @@ explain extended select des_decrypt(des_encrypt("hello",4),'password2'), des_dec
8989

9090
# End of 4.1 tests
9191

92-
#
93-
# Bug#44365 valgrind warnings with encrypt() function
94-
#
95-
--disable_warnings
96-
drop table if exists t1;
97-
--enable_warnings
98-
create table t1 (f1 smallint(6) default null, f2 mediumtext character set utf8)
99-
engine=myisam default charset=latin1;
100-
insert into t1 values (null,'contraction\'s');
101-
insert into t1 values (-15818,'requirement\'s');
102-
--disable_result_log
103-
select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a;
104-
--enable_result_log
105-
drop table t1;
106-
10792
--echo #
10893
--echo # Start of 10.1 tests
10994
--echo #

mysql-test/main/view.result

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,14 +1942,6 @@ f1
19421942
2005-02-02
19431943
drop view v1;
19441944
drop table t1;
1945-
CREATE VIEW v1 AS SELECT ENCRYPT("dhgdhgd");
1946-
SELECT * FROM v1;
1947-
drop view v1;
1948-
CREATE VIEW v1 AS SELECT SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1);
1949-
SELECT * FROM v1;
1950-
SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1)
1951-
dkjhgd
1952-
drop view v1;
19531945
create table t1 (f59 int, f60 int, f61 int);
19541946
insert into t1 values (19,41,32);
19551947
create view v1 as select f59, f60 from t1 where f59 in

mysql-test/main/view.test

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,18 +1715,6 @@ select * from v1 where '2005.02.02'=f1;
17151715
drop view v1;
17161716
drop table t1;
17171717

1718-
#
1719-
# using encrypt & substring_index in view (Bug#7024)
1720-
#
1721-
CREATE VIEW v1 AS SELECT ENCRYPT("dhgdhgd");
1722-
disable_result_log;
1723-
SELECT * FROM v1;
1724-
enable_result_log;
1725-
drop view v1;
1726-
CREATE VIEW v1 AS SELECT SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1);
1727-
SELECT * FROM v1;
1728-
drop view v1;
1729-
17301718
#
17311719
# hide underlying tables names in case of imposibility to update (Bug#10773)
17321720
#

storage/innobase/trx/trx0undo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ static uint16_t trx_undo_header_create(buf_block_t *undo_page, trx_id_t trx_id,
466466
mtr->write<8,mtr_t::MAYBE_NOP>(*undo_page, free + TRX_UNDO_TRX_ID +
467467
undo_page->page.frame, trx_id);
468468
if (UNIV_UNLIKELY(mach_read_from_8(free + TRX_UNDO_TRX_NO +
469-
undo_page->page.frame)))
469+
undo_page->page.frame) != 0))
470470
mtr->memset(undo_page, free + TRX_UNDO_TRX_NO, 8, 0);
471471

472472
/* Write TRX_UNDO_NEEDS_PURGE=1 and TRX_UNDO_LOG_START. */

0 commit comments

Comments
 (0)