darold / pgFormatter

A PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI. On-line demo site at http://sqlformat.darold.net/
PostgreSQL License
1.69k stars 101 forks source link

Formatter for upper case not correct working #325

Closed Cheban1996 closed 1 year ago

Cheban1996 commented 1 year ago
CREATE TYPE user_type AS ENUM(
    'main',
    'sub'
);

CREATE TABLE users(
    id serial PRIMARY KEY,
    email character(64) NOT NULL UNIQUE CHECK (LENGTH(email) = 64),
    created_at timestamp NOT NULL DEFAULT NOW(),
    updated_at timestamp NOT NULL DEFAULT NOW()
);

Why formatter not to upper case for serial, character and timestamp