[LNT] r312399 - Remove wrong fixes for MySQL Index error

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 17:47:16 PDT 2017


Author: cmatthews
Date: Fri Sep  1 17:47:15 2017
New Revision: 312399

URL: http://llvm.org/viewvc/llvm-project?rev=312399&view=rev
Log:
Remove wrong fixes for MySQL Index error

The actual issue was that MySQL was doing a case insensitive string
compare.

Modified:
    lnt/trunk/lnt/server/db/testsuitedb.py

Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=312399&r1=312398&r2=312399&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Fri Sep  1 17:47:15 2017
@@ -968,13 +968,13 @@ class TestSuiteDB(object):
         # Load a map of all the tests, which we will extend when we find tests
         # that need to be added.
         # Downcast to str, so we match on MySQL.
-        test_cache = dict((str(test.name), test)
+        test_cache = dict((test.name, test)
                           for test in session.query(self.Test))
 
         profiles = dict()
-        field_dict = dict([(str(f.name), f) for f in self.sample_fields])
+        field_dict = dict([(f.name, f) for f in self.sample_fields])
         for test_data in tests_data:
-            name = str(test_data['name'])
+            name = test_data['name']
             test = test_cache.get(name)
             if test is None:
                 test = self.Test(test_data['name'])




More information about the llvm-commits mailing list