db.table.field.abs()

This commit is contained in:
mdipierro
2012-12-20 09:03:13 -06:00
parent 3f8bf01b20
commit dcf0a7ccc9
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.2 (2012-12-19 16:06:57) dev
Version 2.3.2 (2012-12-20 09:02:23) dev
+4
View File
@@ -8163,6 +8163,10 @@ class Expression(object):
db = self.db
return Expression(db, db._adapter.AGGREGATE, self, 'AVG', self.type)
def abs(self):
db = self.db
return Expression(db, db._adapter.AGGREGATE, self, 'ABS', self.type)
def lower(self):
db = self.db
return Expression(db, db._adapter.LOWER, self, None, self.type)