Skip to content

Using PostgreSQL namespaced data types results in syntax error #109

Description

@nene

For example:

CREATE TYPE public.my_type AS ENUM('a', 'b', 'c');

SELECT 'a'::public.my_type;

The select statement produces a parse error:

Syntax Error: Unexpected "."
Was expecting to see: ...
--> undefined:3:15
  |
3 | SELECT 'a'::public.my_type;
  |                   ^

Similarly in CREATE TABLE:

CREATE TABLE foo (id public.my_type);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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