Fix DAL ADD method

Fix regression of ADD method:
NameError: global name 'gluon' is not defined
This commit is contained in:
Jeremie Dokime
2014-03-06 17:56:11 +01:00
parent 1abdf72a04
commit 89c4efbac3

View File

@@ -1480,7 +1480,7 @@ class BaseAdapter(ConnectionPool):
return '(%s)' % ' || '.join(self.expand(x,'string') for x in items)
def ADD(self, first, second):
if self.is_numerical_type(first.type) or isinstance(first.type, gluon.dal.Field):
if self.is_numerical_type(first.type) or isinstance(first.type, Field):
return '(%s + %s)' % (self.expand(first),
self.expand(second, first.type))
else: