1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-27964: Test ENCRYPT() only in main.func_crypt

This commit is contained in:
Marko Mäkelä
2022-03-01 09:22:52 +02:00
parent 07f4a4a6d1
commit fd5a6d0f75
4 changed files with 21 additions and 18 deletions

View File

@ -230,3 +230,13 @@ a b
hello 12NKz5XM5JeKI
DROP TABLE t1;
# End of 10.2 tests
#
# MDEV-25778 Overrun buffer in to_string_native()
#
CREATE TABLE t1 (a DECIMAL(15,11) ZEROFILL);
INSERT INTO t1 (a) VALUES (0.1),(0.2);
SELECT length(ENCRYPT(a)) AS f, COUNT(*) FROM t1 GROUP BY f;
f COUNT(*)
13 2
DROP TABLE t1;
# End of 10.6 tests