Firebird backend : Anonymous table aliases are badly anonymized

Issue #779 resolved
Former user created an issue

In the compiled query, the "{ANON 67878897}" alias table name is not translated to the final table_1 alias.

Index: firebird.py
===================================================================
--- firebird.py (revision 3500)
+++ firebird.py (working copy)
@@ -297,7 +297,7 @@
     def visit_alias(self, alias, asfrom=False, **kwargs):
         # Override to not use the AS keyword which FB 1.5 does not like
         if asfrom:
-            return self.process(alias.original, asfrom=True) + " " + self.preparer.format_alias(alias)
+            return self.process(alias.original, asfrom=True) + " " + self.preparer.format_alias(alias,self.preparer.format_alias(alias, self._anonymize(alias.name)))
         else:
             return self.process(alias.original, asfrom=True)

Comments (1)

  1. Log in to comment