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 interval fields #110

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

cvng
Copy link
Contributor

@cvng cvng commented Jan 8, 2024

What kind of change does this PR introduce?

add missing interval fields from from https://www.postgresql.org/docs/16/datatype-datetime.html

What is the current behavior?

parser panics

What is the new behavior?

parser returns

Additional context

as in #106, "multi-word" interval fields are required, eg. this query:

CREATE TABLE IF NOT EXISTS distributors (len interval hour to second(3));

expect this tokens:

tokens.push(TokenProperty::from(Token::HourP));

tokens.push(TokenProperty::from(Token::To));
tokens.push(TokenProperty::from(Token::SecondP));

@psteinroe psteinroe merged commit ab3c4ea into supabase-community:main Jan 8, 2024
1 check passed
@cvng cvng deleted the feat/interval-fields branch January 8, 2024 20:52
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