aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-10 16:52:56 +0200
committerDavid Gageot <david@gageot.net>2012-07-10 16:53:00 +0200
commit0269f5c8de13f6d36b03708ab974bf3d9842f143 (patch)
tree0a58cbfa3ccf3164c0857252c7672f97d22c6da2 /sonar-plugin-api/src
parent952d0986899adc2d28d1853a718a004e179fd34b (diff)
downloadsonarqube-0269f5c8de13f6d36b03708ab974bf3d9842f143.tar.gz
sonarqube-0269f5c8de13f6d36b03708ab974bf3d9842f143.zip
SONAR-3437 fix mapping for Oracle
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper-oracle.xml5
-rw-r--r--sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper.xml2
2 files changed, 2 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper-oracle.xml b/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper-oracle.xml
index b64fb242646..2e4c7fd0d2f 100644
--- a/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper-oracle.xml
+++ b/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper-oracle.xml
@@ -36,11 +36,8 @@
</insert>
<insert id="insertData" parameterType="MeasureModel" useGeneratedKeys="false">
- <selectKey order="BEFORE" resultType="Long" keyProperty="id">
- select measure_data_seq.NEXTVAL from DUAL
- </selectKey>
INSERT INTO measure_data (id, measure_id, snapshot_id, data)
- VALUES (#{id}, #{measureData.measure.id}, #{snapshotId}, #{measureData.data})
+ VALUES (measure_data_seq.NEXTVAL, #{id}, #{snapshotId}, #{measureData.data})
</insert>
<update id="update" parameterType="MeasureModel">
diff --git a/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper.xml b/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper.xml
index c6eee0d29f7..c89f8eed8d1 100644
--- a/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper.xml
+++ b/sonar-plugin-api/src/main/resources/org/sonar/api/database/model/MeasureMapper.xml
@@ -31,7 +31,7 @@
<insert id="insertData" parameterType="MeasureModel" useGeneratedKeys="false">
INSERT INTO measure_data (measure_id, snapshot_id, data)
- VALUES (#{measureData.measure.id}, #{snapshotId}, #{measureData.data})
+ VALUES (#{id}, #{snapshotId}, #{measureData.data})
</insert>
<update id="update" parameterType="MeasureModel">