db.table.field.avg(), issue 803, thanks Ato
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-05-17 17:51:51) dev
|
Version 2.00.0 (2012-05-17 18:13:53) dev
|
||||||
|
|||||||
@@ -7479,6 +7479,9 @@ class Expression(object):
|
|||||||
def len(self):
|
def len(self):
|
||||||
return Expression(self.db, self.db._adapter.AGGREGATE, self, 'LENGTH', 'integer')
|
return Expression(self.db, self.db._adapter.AGGREGATE, self, 'LENGTH', 'integer')
|
||||||
|
|
||||||
|
def avg(self):
|
||||||
|
return Expression(self.db, self.db._adapter.AGGREGATE, self, 'AVG', self.type)
|
||||||
|
|
||||||
def lower(self):
|
def lower(self):
|
||||||
return Expression(self.db, self.db._adapter.LOWER, self, None, self.type)
|
return Expression(self.db, self.db._adapter.LOWER, self, None, self.type)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user