db.table.field.avg(), issue 803, thanks Ato

This commit is contained in:
Massimo Di Pierro
2012-05-17 18:14:19 -05:00
parent 672f093e15
commit ed354d8646
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-17 17:51:51) dev
Version 2.00.0 (2012-05-17 18:13:53) dev
+3
View File
@@ -7479,6 +7479,9 @@ class Expression(object):
def len(self):
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):
return Expression(self.db, self.db._adapter.LOWER, self, None, self.type)