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

parsing create table with tokens separated by space cause empty output #194

Closed
arnovkh opened this issue Mar 24, 2023 · 2 comments
Closed
Assignees

Comments

@arnovkh
Copy link

arnovkh commented Mar 24, 2023

parsing following create table statement returns an empty array

CREATE TABLE TEST.CRM_JOB_PARAM (
COL1 VARCHAR(50) NOT NULL,
COl2 VARCHAR(50),
COL3 VARCHAR(50) DEFAULT '0',
COL3 TIMESTAMP
)
IN TABLESPACE1
INDEX IN TABLESPACE2

If INDEX IN is removed, parsing works fine.
This issue applys to any 2/3 word tokens e.g. ORGANIZE BY ROW

@xnuinside xnuinside self-assigned this Mar 29, 2023
@xnuinside
Copy link
Owner

@arnovkh thanks for reporting the issue. I had surgery and other a lot things to do, but I'm back. Already added support for your statements in next release. I will ping you when it will be available on pypi.

@xnuinside
Copy link
Owner

@arnovkh fix was released in version 0.30 https://pypi.org/project/simple-ddl-parser/ pls try, if will be anything more - feel free to open new issue. And thanks again!

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