fixed AttributeError: 'Expression' object has no attribute '_table' issue

This commit is contained in:
mdipierro
2012-08-30 14:42:32 -05:00
parent 2b83928cab
commit 3709dcedd2
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -7935,6 +7935,7 @@ class Expression(object):
self.op = op
self.first = first
self.second = second
self._table = getattr(first,'_table',None)
### self._tablename = first._tablename ## CHECK
if not type and first and hasattr(first,'type'):
self.type = first.type