Skip to content

SYSDATE Considered Identifier when used in inner select #3394

@razvanb96

Description

@razvanb96

Hi all,

I've been playing around with h2 v2.1.210 and observed quite an odd behaviour when having SYSDATE Keyword inside an inner select

Running SELECT SYSDATE FROM DUAL is going to work without any issues, but using sysdate inside an inner select is going to throw an error, because it seems like sysdate is expected to be an identifier.

SELECT * FROM (SELECT SYSDATE FROM DUAL) returns

Column "SYSDATE" not found; SQL statement: CREATE FORCE VIEW ( SELECT "SYSDATE" ) AS SELECT "SYSDATE" [42122-210]

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