summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Thenault <sylvain.thenault@logilab.fr>2008-05-16 11:04:47 +0200
committerSylvain Thenault <sylvain.thenault@logilab.fr>2008-05-16 11:04:47 +0200
commit37efb3f82b2bd93aeb1e177ede786865796953d7 (patch)
tree4a8c512e371ca71c875a6f0c80309e076672ef02
parenta316a6c260eb2a63726cc10eca75ac76217ebcf1 (diff)
downloadlogilab-common-37efb3f82b2bd93aeb1e177ede786865796953d7.tar.gz
work in progress
-rw-r--r--adbh.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/adbh.py b/adbh.py
index 1e3b1b1..1e0535c 100644
--- a/adbh.py
+++ b/adbh.py
@@ -80,6 +80,9 @@ class IN(FunctionDescr):
class LENGTH(FunctionDescr):
rtype = 'Int'
+class DATE(FunctionDescr):
+ rtype = 'Date'
+
class _GenericAdvFuncHelper:
"""Generic helper, trying to provide generic way to implement
specific functionnalities from others DBMS
@@ -103,6 +106,7 @@ class _GenericAdvFuncHelper:
# transformation functions
'UPPER': UPPER, 'LOWER': LOWER,
'LENGTH': LENGTH,
+ 'DATE': DATE,
# keyword function
'IN': IN
}
@@ -118,15 +122,6 @@ class _GenericAdvFuncHelper:
'Interval' : 'interval',
'Password' : 'bytea',
'Bytes' : 'bytea',
- # FIXME: still there for use from erudi, should be moved out
- # XXX think it can be safely removed now
- 'COUNT' : 'integer',
- 'MIN' : 'integer',
- 'MAX' : 'integer',
- 'SUM' : 'integer',
- 'LOWER' : 'text',
- 'UPPER' : 'text',
- 'LENGTH' :'integer',
}