Skip to content

feat: tsql multiple add columns in alter statement - #175

Merged
matthias-Q merged 2 commits into
DerekStride:mainfrom
matthias-Q:tsql_alter_table_2
Jul 4, 2023
Merged

feat: tsql multiple add columns in alter statement#175
matthias-Q merged 2 commits into
DerekStride:mainfrom
matthias-Q:tsql_alter_table_2

Conversation

@matthias-Q

Copy link
Copy Markdown
Collaborator

Closes #135 and supersedes #144

I feel this is a bit hacky, but I just made the add keyword optional, so that it will not repeated in _alter_specifications

I also removed that rename part of the test, since this is not valid SQL syntax and made the keyword constrain optional. See discussion in #144

@matthias-Q
matthias-Q requested review from DerekStride and dmfay July 3, 2023 17:57

@dmfay dmfay left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it's a venial kludge at worst imo but a TODO comment above add_column might be a good idea in case we wind up revisiting

@matthias-Q
matthias-Q merged commit a3c5bc8 into DerekStride:main Jul 4, 2023
@matthias-Q
matthias-Q deleted the tsql_alter_table_2 branch July 4, 2023 15:53
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.

T-SQL Alter Table

3 participants