Miscellaneous Functions MySQL Tutorial

If so, it returns the connection identifier of the client that holds the lock. Otherwise, it returns NULL.