mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#20752: BENCHMARK with many iterations returns too quickly
In BENCHMARK(count, expr), count could overflow/wrap-around. Patch changes to a sufficiently large data-type. Adds a warning for negative count values.
This commit is contained in:

parent
730bea634f
commit
1ed076e41b
@ -874,6 +874,13 @@ select benchmark(0, NULL);
|
||||
select benchmark(100, NULL);
|
||||
select benchmark(NULL, 1+1);
|
||||
|
||||
#
|
||||
# Bug #20752: BENCHMARK with many iterations returns too quickly
|
||||
#
|
||||
|
||||
# not a string, but belongs with the above Bug#22684
|
||||
select benchmark(-1, 1);
|
||||
|
||||
#
|
||||
# Please note:
|
||||
# 1) The collation of the password is irrelevant, the encryption uses
|
||||
|
Reference in New Issue
Block a user