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

Parse adding a primary key as an alter table statement #119

Closed
couling opened this issue Mar 4, 2022 · 1 comment
Closed

Parse adding a primary key as an alter table statement #119

couling opened this issue Mar 4, 2022 · 1 comment

Comments

@couling
Copy link

couling commented Mar 4, 2022

I'm trying to parse a sizeable DDL script with the primary key detached in separate alter table statements

alter table MY_TABLE
   add constraint PK_MY_TABLE primary key (DATETIME, REGIONID)
      using index tablespace SOME_TABLE_SPACE;

I notice it picks up the additional indexes, but at the moment simple-ddl-parser does not pick up the primary key when it's added in this way.

@xnuinside
Copy link
Owner

hello, sorry for delay without answer ) I thought this month will never share to me any time to fix issues.. but I released 0.26.0 with fix, test: https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/test_alter_statements.py#L1718. Sorry one more time for the delay, feel free to open PR if you will find any new issue

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

No branches or pull requests

2 participants