mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-29154 Excessive warnings upon a call to RANDOM_BYTES
Bring the 5 warnings of select random_bytes(cast('x' as unsigned)+1); back to two. 1 for Item_func_random_bytes::fix_length_and_dec and one from Item_func_random_bytes::val_str. The warnings are from args[0]->val_int().
This commit is contained in:
committed by
Sergei Golubchik
parent
7f06f68108
commit
d7e3265dd3
@ -5327,5 +5327,20 @@ SELECT RANDOM_BYTES(-10) f1, IFNULL(a,1) f2 FROM t GROUP BY f1, f2;
|
||||
ERROR 22003: length value is out of range in 'random_bytes(-10)'
|
||||
DROP TABLE t;
|
||||
#
|
||||
# MDEV-29154: Excessive warnings upon a call to RANDOM_BYTES
|
||||
#
|
||||
select length(random_bytes(cast('x' as unsigned)+1));
|
||||
length(random_bytes(cast('x' as unsigned)+1))
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: 'x'
|
||||
Warning 1292 Truncated incorrect INTEGER value: 'x'
|
||||
select repeat('.', cast('x' as unsigned)+1);
|
||||
repeat('.', cast('x' as unsigned)+1)
|
||||
.
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: 'x'
|
||||
Warning 1292 Truncated incorrect INTEGER value: 'x'
|
||||
#
|
||||
# End of 10.10 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user