Skip to content

MySQL function not implemented: GET_LOCK #23036

Closed

Description

@dengn

Function Information

Function Name: GET_LOCK
Category: miscellaneous

MySQL Function Description

MySQL GET_LOCK function:
GET_LOCK(str, timeout) - Tries to obtain a lock with a name given by the string str, using a timeout of timeout seconds.

Expected Behavior

Expected behavior:
According to MySQL documentation, the function should return correct results.

Current Behavior in MatrixOne

This function is not implemented in MatrixOne.

Error Message: (20105, "not supported: function or operator 'get_lock'")

Test Case

SELECT GET_LOCK('lock1', 10) AS result1

MySQL Documentation

Request

Please implement the GET_LOCK function to improve MySQL compatibility.

Activity

  1. fengttt commented on Nov 21, 2025

    @fengttt
    Contributor

    Won't fix. Not meaningful in matrixone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions