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

add some value types #129

Merged
merged 2 commits into from
Jun 30, 2021
Merged

Conversation

ytakaya
Copy link

@ytakaya ytakaya commented Jun 30, 2021

I extended the syntax to parse the following data types.

  • numerics
    • smallmoney
    • money
  • date and time
    • datetimeoffset
    • smalldatetime
    • datetime2
  • unicode character strings
    • nchar
    • nvarchar
    • ntext

Comment on lines +28 to +37
v_integer integer NOT NULL,
v_text text,
v_smallmoney smallmoney,
v_money money,
v_datetimeoffset datetimeoffset(1),
v_datetime2 datetime2,
v_smalldatetime smalldatetime,
v_nchar nchar(30),
v_nvarchar nvarchar(30),
v_ntext ntext
Copy link
Collaborator

Choose a reason for hiding this comment

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

As you can see in this diff on GitHub, the indentation is inconsistent. Please consider checking your code before submitting a PR next time.

Suggested change
v_integer integer NOT NULL,
v_text text,
v_smallmoney smallmoney,
v_money money,
v_datetimeoffset datetimeoffset(1),
v_datetime2 datetime2,
v_smalldatetime smalldatetime,
v_nchar nchar(30),
v_nvarchar nvarchar(30),
v_ntext ntext
v_integer integer NOT NULL,
v_text text,
v_smallmoney smallmoney,
v_money money,
v_datetimeoffset datetimeoffset(1),
v_datetime2 datetime2,
v_smalldatetime smalldatetime,
v_nchar nchar(30),
v_nvarchar nvarchar(30),
v_ntext ntext

Copy link
Author

Choose a reason for hiding this comment

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

Sorry for my carelessness, I'll be careful next time.

Copy link
Collaborator

@k0kubun k0kubun left a comment

Choose a reason for hiding this comment

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

Thanks!

@k0kubun k0kubun merged commit 7b1bfd5 into sqldef:master Jun 30, 2021
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