I recently installed 0.1.16 & was unable to run column_defs_lowlevel.py posted on github:
https://github.com/andialbrecht/sqlparse/blob/master/examples/column_defs_lowlevel.pyTraceback (most recent call last):
File "./columns_defs_lowlevel.py", line 42, in <module>
columns = extract_definitions(par)
File "./columns_defs_lowlevel.py", line 24, in extract_definitions
token = token_list.token_next(0)
AttributeError: 'NoneType' object has no attribute 'token_next'
I saw in an earlier thread from May that parsing DDL's is problematic (table names were being identified as functions...), but I'm hoping that the enclosed column definitions can still be accomplished. Is there something obvious I have missed in getting this example to execute?
Thanks.