column_defs_lowlevel.py broken?

103 views
Skip to first unread message

ocicat

unread,
Sep 15, 2015, 12:05:34 AM9/15/15
to sqlparse
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.py

Traceback (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.

Andi Albrecht

unread,
Sep 16, 2015, 1:43:55 PM9/16/15
to sqlparse
Hi,
yepp, it's broken ATM. I'll hope to have some time to fix it soon.

Regards,

Andi

--
You received this message because you are subscribed to the Google Groups "sqlparse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlparse+u...@googlegroups.com.
To post to this group, send email to sqlp...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlparse.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages