Open Abigail opened 1 month ago
Indeed, that is a bug, and apparently easy to fix too: just remove the parenthesis.
SELECT
GET_LOCK(
FROM Some_Table
I hope you don't have a column with that name...
Are there applications still using GET_LOCK()
?
Line 2871 of
lib/mysqly_connection.cpp
reads:This however, is an incorrect way of parsing SQL. In particular, there is an optional space between
GET_LOCK
and the opening parenthesis.Which means that the following SQL code does disable multiplexing:
but the following SQL code does not:
And that is a bug.
It also means that contrived code like
will disable multiplexing.