Skip to content

POSTGRESQL create table ( ctime timestamp(0) WITH TIME ZONE) format issue #618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xiangnanscu opened this issue Jul 5, 2023 · 1 comment
Labels

Comments

@xiangnanscu
Copy link

Describe the bug
WITH

Expected behavior

CREATE TABLE usr(
  id SERIAL PRIMARY KEY NOT NULL,
  ctime timestamp(0) WITH TIME ZONE,
  username varchar(18) UNIQUE
);

Actual behavior

CREATE TABLE
  usr (
    id SERIAL PRIMARY KEY NOT NULL,
    ctime timestamp(0)
    WITH
      TIME ZONE,
      username varchar(18) UNIQUE
  );

Usage

@xiangnanscu xiangnanscu added the bug label Jul 5, 2023
@xiangnanscu xiangnanscu changed the title POSTGRESQL create table ( ctime timestamp(0) WITH TIME ZONE DEFAULT ) format issue POSTGRESQL create table ( ctime timestamp(0) WITH TIME ZONE) format issue Jul 5, 2023
@nene
Copy link
Collaborator

nene commented Jul 8, 2023

Thanks for reporting.

Possibly this can be patched, but it's really a sign of more fundamental problems with the formatter.

@nene nene closed this as completed in ad78021 Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants