Skip to content

Parsing fails for LANGUAGE 'sql' in PostgreSQL CREATE FUNCTION #128

@nene

Description

@nene

The following:

CREATE FUNCTION foo()
RETURNS INT
AS 'SELECT 1;'
LANGUAGE 'sql';

Produces parse error:

Syntax Error: Unexpected "'"
Was expecting to see: identifier or whitespace
--> undefined:4:10
  |
4 | LANGUAGE 'sql';
  |          ^

Parser expects an identifier, but string is also valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions