mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-4017 - GET_LOCK() with negative timeouts has strange behavior
GET_LOCK() silently accepted negative values and NULL for timeout. Fixed GET_LOCK() to issue a warning and return NULL in such cases.
This commit is contained in:
parent
e40bc65933
commit
392df76bc3
6 changed files with 40 additions and 4 deletions
|
|
@ -361,5 +361,18 @@ set optimizer_switch=@optimizer_switch_save;
|
|||
drop view v_merge, vm;
|
||||
drop table t1,tv;
|
||||
#
|
||||
# MDEV-4017 - GET_LOCK() with negative timeouts has strange behavior
|
||||
#
|
||||
SELECT GET_LOCK('ul1', NULL);
|
||||
GET_LOCK('ul1', NULL)
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1411 Incorrect timeout value: 'NULL' for function get_lock
|
||||
SELECT GET_LOCK('ul1', -1);
|
||||
GET_LOCK('ul1', -1)
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1411 Incorrect timeout value: '-1' for function get_lock
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue