TYPE_MAPPING expected to be a mapping from yams type to db type, and timestamp is the Datetime yams type stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Dec 2009 08:56:38 +0100
branchstable
changeset 4198 8d644eb862b9
parent 4197 5446c74189b6
child 4199 c9526b1ffb1d
TYPE_MAPPING expected to be a mapping from yams type to db type, and timestamp is the Datetime yams type
server/sources/native.py
--- a/server/sources/native.py	Wed Dec 23 08:22:18 2009 +0100
+++ b/server/sources/native.py	Wed Dec 23 08:56:38 2009 +0100
@@ -594,7 +594,7 @@
 
 def sql_schema(driver):
     helper = get_adv_func_helper(driver)
-    tstamp_col_type = helper.TYPE_MAPPING.get('TIMESTAMP', 'TIMESTAMP')
+    tstamp_col_type = helper.TYPE_MAPPING['Datetime']
     schema = """
 /* Create the repository's system database */