Skip to content

BUG [postgresql]: CREATE FUNCTION throws a parsing error when the return type is schema-qualified #120

@joelmukuthu

Description

@joelmukuthu

The following throws a parse error, while RETURNS customer works as expected.

CREATE FUNCTION public.get_customers()
RETURNS public.customer
LANGUAGE SQL
AS $BODY$
  SELECT * FROM customer;
$BODY$;

I understand that postgres support is experimental, but I opened a bug report since #63 documents that RETURN type should be supported.

Thanks a lot for your work on this library and on the prettier plugin as well! <3

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