db.table.field.abs()
This commit is contained in:
1 parent
dd9a3c8b7e
commit
9bf964b918
2 files changed
+5
-1
No files matched your search
@@ -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