Skip to content
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

feat: add support for create table like #95

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

cvng
Copy link
Contributor

@cvng cvng commented Dec 23, 2023

What kind of change does this PR introduce?

add support for create table like

What is the current behavior?

panics

What is the new behavior?

parser returns

Additional context

Last batch of PRs before pulling in the postgres regression tests

Comment on lines +2 to +3
/* TODO: CREATE TABLE IF NOT EXISTS distributors (name varchar(40) DEFAULT 'Luso Films', len interval hour to second(3), name varchar(40) DEFAULT 'Luso Films', did int DEFAULT nextval('distributors_serial'), stamp timestamp DEFAULT now() NOT NULL, stamptz timestamp with time zone, "time" time NOT NULL, timetz time with time zone, CONSTRAINT name_len PRIMARY KEY (name, len)); */ SELECT 1;
/* TODO: CREATE TABLE types (a real, b double precision, c numeric(2, 3), d char(4), e char(5), f varchar(6), g varchar(7)); */ SELECT 1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cvng why is this todo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have at least 3 more PRs based on this one and I was trying to keep it smaller

For now each TODO is a failing case with either a parser bug (no panics but produces an incorrect tree) or missing node properties, eg TypeName

The next PRs should be smaller reproduction cases

@psteinroe psteinroe merged commit 8a6eb32 into supabase-community:main Dec 31, 2023
1 check passed
@cvng cvng deleted the create-table-tests branch December 31, 2023 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants