Skip to content
Snippets Groups Projects
Commit aab42b53c0aa authored by Sylvain Thenault's avatar Sylvain Thenault
Browse files

new remove_subquery method

parent b2482183d173
No related branches found
No related tags found
No related merge requests found
......@@ -541,6 +541,12 @@
ca = self.get_variable(alias, i)
ca.query = node.query
def remove_subquery(self, node):
self.with_.remove(node)
node.parent = None
for i, alias in enumerate(node.aliases):
del self.aliases[alias.name]
def get_variable(self, name, colnum=None):
"""get a variable instance from its name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment