Re: Bug in create type when missed the comma between element list - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: Bug in create type when missed the comma between element list
Date
Msg-id CAKFQuwagJ42WQR_-r1YLN5BYiom8c9oFYac6nkeGfUUkpQMzSA@mail.gmail.com
Whole thread Raw
In response to Bug in create type when missed the comma between element list  (Diego <mrstephenamell@gmail.com>)
Responses Re: Bug in create type when missed the comma between element list
List pgsql-hackers
On Mon, Nov 4, 2024 at 9:17 AM Diego <mrstephenamell@gmail.com> wrote:


u: daf db: daf # CREATE TYPE test_enum AS ENUM(
    'one'
    'two',
    'three',
    'four'
);

maybe, some of you can help me to report it properly.

That is working per SQL standard.  If you hadn't used newlines between the elements you would have gotten an error; but the newlines between literals is valid string literal syntax.


David J.

pgsql-hackers by date:

Previous
From: Diego
Date:
Subject: Bug in create type when missed the comma between element list
Next
From: Tom Lane
Date:
Subject: Re: Wrong security context for deferred triggers?