fixed varquote if no-table and IDENTITY

This commit is contained in:
mdipierro
2012-07-04 22:50:48 -05:00
parent f5a62808f8
commit 8963f8df94
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8152,7 +8152,7 @@ class Field(Expression):
return True
def __str__(self):
quote = self.db._adapter and self.db._adapter.varquote or IDENTITY
quote = self.db and self.db._adapter.varquote or IDENTITY
try:
return '%s.%s' % (quote(self.tablename), quote(self.name))
except: