db.table.field.abs()
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.3.2 (2012-12-19 16:06:57) dev
|
Version 2.3.2 (2012-12-20 09:02:23) dev
|
||||||
|
|||||||
@@ -8163,6 +8163,10 @@ class Expression(object):
|
|||||||
db = self.db
|
db = self.db
|
||||||
return Expression(db, db._adapter.AGGREGATE, self, 'AVG', self.type)
|
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):
|
def lower(self):
|
||||||
db = self.db
|
db = self.db
|
||||||
return Expression(db, db._adapter.LOWER, self, None, self.type)
|
return Expression(db, db._adapter.LOWER, self, None, self.type)
|
||||||
|
|||||||
Reference in New Issue
Block a user