IS_FREE_LOCK()

Overview

Returns a boolean to indicate if a named user-level lock is unlocked.

USAGE

IS_FREE_LOCK(name)

Argument Name

Description

name

The string argument that is checked

DETAILS

IS_FREE_LOCK() is a locking function that returns a boolean to indicate if the user-level lock represented by name is not locked.

The return value is 1 if the name argument is not a locked user-level lock, otherwise it is 0.

An error is returned if the name argument is NULL.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT IS_FREE_LOCK('mylock');
+------------------------+
| IS_FREE_LOCK('mylock') |
+------------------------+
|                      1 |
+------------------------+
SELECT IS_FREE_LOCK(NULL);
ERROR 1 (HY000): [24576] Unknown prepared param type: "t_null"
SELECT IS_FREE_LOCK(1);
+-----------------+
| IS_FREE_LOCK(1) |
+-----------------+
|               1 |
+-----------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES