Permalink
Browse files

removed unnecessary ON DUPLICATE KEY clause and also added ref data c…

…aching to populate_test_collections
  • Loading branch information...
jeads committed Nov 20, 2012
1 parent 205895d commit 1ccf2d57390a51cda7658ecaf283bda139c4e3b8
Showing with 4 additions and 4 deletions.
  1. +2 −0 datazilla/controller/admin/collection.py
  2. +1 −2 datazilla/model/base.py
  3. +1 −2 datazilla/model/sql/perftest.json
@@ -39,6 +39,8 @@ def load_test_collection(project):
id = ptm.set_test_collection(new_name, "")
ptm.set_test_collection_map(id, product_names[ new_name ])
+ ptm.cache_ref_data()
+
ptm.disconnect()
def get_test_collection_name(product, version, branch):
View
@@ -980,8 +980,7 @@ def set_test_collection(self, name, description):
id = self._insert_data_and_get_id('set_test_collection',
[ name,
- description,
- name ])
+ description ])
return id
@@ -271,8 +271,7 @@
"set_test_collection":{
"sql":"INSERT INTO `test_collection` (`name`, `description`)
- VALUES (?, ?)
- ON DUPLICATE KEY UPDATE `name`=?",
+ VALUES (?, ?)",
"host":"master_host"
},

0 comments on commit 1ccf2d5

Please sign in to comment.