summaryrefslogtreecommitdiff
path: root/adbh.py
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2009-12-14 15:05:30 +0100
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2009-12-14 15:05:30 +0100
commit4a1f9990d58e202372a1d4406dfaad59b3d8ddb6 (patch)
tree3783777df701d46fe2b705694d3c662a8df7b6b4 /adbh.py
parent498ab0f5d05b0fe3f7367870e1cce72414be2736 (diff)
downloadlogilab-common-4a1f9990d58e202372a1d4406dfaad59b3d8ddb6.tar.gz
added indirection for TIMESTAMP columns in the mapping
Diffstat (limited to 'adbh.py')
-rw-r--r--adbh.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/adbh.py b/adbh.py
index 377ea29..1382c48 100644
--- a/adbh.py
+++ b/adbh.py
@@ -136,6 +136,7 @@ class _GenericAdvFuncHelper:
'Interval' : 'interval',
'Password' : 'bytea',
'Bytes' : 'bytea',
+ 'TIMESTAMP': 'TIMESTAMP',
}
@@ -230,6 +231,9 @@ INSERT INTO %s VALUES (0);''' % (seq_name, seq_name)
else:
return 'FALSE'
+ def binary_value(self, value):
+ return value
+
def increment_sequence(self, cursor, seq_name):
for sql in self.sqls_increment_sequence(seq_name):
cursor.execute(sql)