datacamp / sqlwhat

https://sqlwhat.readthedocs.io
GNU Affero General Public License v3.0
3 stars 8 forks source link

replace ast list with ListNode #43

Closed machow closed 7 years ago

machow commented 7 years ago

Currently, when you get the target_list of a SelectStmt, you get a literal python list. That's fine for comparing currently, since things like has_equal_ast use repr to compare AST representations. However, it could cause problems down the road.

machow commented 7 years ago

Closing for now. for the tsql AST, I define nodes that are essentially lists where necessary.