From 0825f36322508d39e6bdcdadb4ea8d4aaeb17671 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 10 Jun 2015 14:00:21 +0200 Subject: Copy custom measures in compute engine --- .../java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java | 2 +- .../org/sonar/core/measure/custom/db/CustomMeasureMapper.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-core') diff --git a/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java b/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java index 4b609b7fee2..bfc7eb929ea 100644 --- a/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java +++ b/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java @@ -32,7 +32,7 @@ public interface CustomMeasureMapper { List selectByMetricId(int id); - List selectByComponentId(long id); + List selectByComponentUuid(String s); void delete(long id); diff --git a/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml b/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml index a3465ed2b90..12a61bdf359 100644 --- a/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml @@ -29,11 +29,11 @@ where m.metric_id=#{metricId} - select from manual_measures m - where m.resource_id=#{componentId} + where m.component_uuid=#{componentUuid} -- cgit v1.2.3