diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2009-12-14 15:05:30 +0100 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2009-12-14 15:05:30 +0100 |
commit | 4a1f9990d58e202372a1d4406dfaad59b3d8ddb6 (patch) | |
tree | 3783777df701d46fe2b705694d3c662a8df7b6b4 /adbh.py | |
parent | 498ab0f5d05b0fe3f7367870e1cce72414be2736 (diff) | |
download | logilab-common-4a1f9990d58e202372a1d4406dfaad59b3d8ddb6.tar.gz |
added indirection for TIMESTAMP columns in the mapping
Diffstat (limited to 'adbh.py')
-rw-r--r-- | adbh.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |