MariaDB [test]> # SET STATEMENT works (OK)
|
MariaDB [test]> set statement lock_wait_timeout=1 for select @@lock_wait_timeout;
|
+---------------------+
|
| @@lock_wait_timeout |
|
+---------------------+
|
| 1 |
|
+---------------------+
|
1 row in set (0.01 sec)
|
|
MariaDB [test]> # Setting a totally unrelated global variable
|
MariaDB [test]> set global general_log=0;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [test]> # SET STATEMENT does not work anymore (FAIL)
|
MariaDB [test]> set statement lock_wait_timeout=1 for select @@lock_wait_timeout;
|
+---------------------+
|
| @@lock_wait_timeout |
|
+---------------------+
|
| 31536000 |
|
+---------------------+
|
1 row in set (0.00 sec)
|