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.66k stars 100 forks source link

Formatter for upper case not correct working #325

Closed Cheban1996 closed 11 months ago

Cheban1996 commented 11 months 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