diff options
author | Sylvain Thenault <sylvain.thenault@logilab.fr> | 2008-05-16 11:04:47 +0200 |
---|---|---|
committer | Sylvain Thenault <sylvain.thenault@logilab.fr> | 2008-05-16 11:04:47 +0200 |
commit | 37efb3f82b2bd93aeb1e177ede786865796953d7 (patch) | |
tree | 4a8c512e371ca71c875a6f0c80309e076672ef02 | |
parent | a316a6c260eb2a63726cc10eca75ac76217ebcf1 (diff) | |
download | logilab-common-37efb3f82b2bd93aeb1e177ede786865796953d7.tar.gz |
work in progress
-rw-r--r-- | adbh.py | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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', } |