Skip to content

Support PostgreSQL CREATE FUNCTION ... AS 'lib', 'symbol' syntax #2093

@LucaCappelletti94

Description

@LucaCappelletti94

sqlparser-rs fails to parse valid PostgreSQL CREATE FUNCTION statements that specify both a library path and symbol name, e.g.:

CREATE FUNCTION cas_in(input cstring)
RETURNS cas
IMMUTABLE PARALLEL SAFE
LANGUAGE c
AS 'MODULE_PATHNAME', 'cas_in_wrapper';
ParserError("Expected: end of statement, found: ,")

I will make a PR adding support for this later after I am finished with #2092

Luca

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