Skip to content

Documentation Error in SET DEFAULT_LOCK_TIMEOUT command #4269

@IrisesD

Description

@IrisesD

Hello team,

We found a documentation error in SET DEFAULT_LOCK_TIMEOUT command in https://www.h2database.com/html/commands.html#set_default_lock_timeout

Here in the documentation the synopsis is:

SET DEFAULT LOCK_TIMEOUT int

Which is an error as we tried commands like:

SET DEFAULT LOCK_TIMEOUT 1000;

and H2 engine reports a syntax error:

Syntax error in SQL statement "SET [*]DEFAULT LOCK_TIMEOUT 1000"; expected "@, AUTOCOMMIT, EXCLUSIVE, IGNORECASE, PASSWORD, SALT, MODE, DATABASE, COLLATION, CLUSTER, DATABASE_EVENT_LISTENER, ALLOW_LITERALS, DEFAULT_TABLE_TYPE, SCHEMA, CATALOG, SCHEMA_SEARCH_PATH, JAVA_OBJECT_SERIALIZER, IGNORE_CATALOGS, SESSION, TRANSACTION, TIME, NON_KEYWORDS, DEFAULT_NULL_ORDERING"; SQL statement: SET DEFAULT LOCK_TIMEOUT 1000 [42001-239]

This is an error in the documentation. The synopsis should be:

SET DEFAULT_LOCK_TIMEOUT int

The environment we are using is the latest h2-2.3.239-SNAPSHOT.jar

Metadata

Metadata

Assignees

No one assigned

    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