Open jj4st13 opened 7 years ago
It's a result of incorrect grouping of lists separated by commas. See #66.
I'm having this problem now. Need to extract column names and types from CREATE TABLE definitions and the lines aren't split on commas correctly.
query is "CREATE TABLE 'Student' ('id' INTEGER NOT NULL, 'name' TEXT NOT NULL, 'dgree' INTEGER NOT NULL, 'subject' TEXT NOT NULL, PRIMARY KEY(id));"
i run sqlparse.parse(query)
After parsing the query, the tokenizer will not return correctly.
The token group contains "NOT NULL, 'name'."
Is it working correctly?
I want to separate "NOT NULL, 'name'".