Skip to content

Restore YEAR data type for MySQL compatibility mode #2831

@mrigger

Description

@mrigger

Consider the following test case:

SELECT CAST(1 AS YEAR); -- Syntax error in SQL statement

Unexpectedly, the SELECT results in a syntax error. I would expect this to work, since the documentation explicitly mentions that YEAR is an alias for SMALLINT (See https://www.h2database.com/html/datatypes.html#smallint_type). I found this based on commit 073bbb8.

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