Commits

mat...@13f79535-47bb-0310-9956-ffa450edef68  committed ef5a795

Fixed issues with new version of python-sqlparse (from Jure)

  • Participants
  • Parent commits 992131c

Comments (0)

Files changed (1)

File bloodhound_multiproduct/multiproduct/dbcursor.py

                     raise Exception("Invalid FROM table name")
                 name, alias = l[0], None
                 alias = l[1] if len(l) > 1 else name
-                token = nametokens[0]
-                for t in nametokens[1:]:
-                    self._token_delete(parent, t)
-                inject_table_view(token, name, alias)
+                if not name in self._skip_tables:
+                    token = nametokens[0]
+                    for t in nametokens[1:]:
+                        self._token_delete(parent, t)
+                    inject_table_view(token, name, alias)
             return list()
 
         current_token = self._token_next(parent, start_token)