Commits

Anonymous committed ef5a795

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

Comments (0)

Files changed (1)

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)