[schemaserial] fix detection of CWComputedRType table, closes #4901150
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 02 Feb 2015 22:05:00 +0100
changeset 10191 cc4b8021bdf3
parent 10190 252e8f7ff9ea
child 10192 365e5a0287d6
[schemaserial] fix detection of CWComputedRType table, closes #4901150
server/schemaserial.py
--- a/server/schemaserial.py	Fri Jan 30 15:43:28 2015 +0100
+++ b/server/schemaserial.py	Mon Feb 02 22:05:00 2015 +0100
@@ -90,8 +90,8 @@
 
     # Computed Rtype
     with cnx.ensure_cnx_set:
-        tables = set(dbhelper.list_tables(cnx.cnxset.cu))
-        has_computed_relations = 'cw_CWComputedRType' in tables
+        tables = set(t.lower() for t in dbhelper.list_tables(cnx.cnxset.cu))
+        has_computed_relations = 'cw_cwcomputedrtype' in tables
     if has_computed_relations:
         rset = cnx.execute(
             'Any X, N, R, D WHERE X is CWComputedRType, X name N, '