From: Simon Brandhof Date: Thu, 10 Nov 2016 17:31:47 +0000 (+0100) Subject: Add some missing jdbcType to PurgeMapper.xml X-Git-Tag: 6.2-RC1~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d66e57cb020b8ad33f376c721167ef708f76e398;p=sonarqube.git Add some missing jdbcType to PurgeMapper.xml --- diff --git a/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml b/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml index 8e8424fc56a..98dc09fbf60 100644 --- a/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml +++ b/sonar-db/src/main/resources/org/sonar/db/purge/PurgeMapper.xml @@ -16,7 +16,7 @@ and (s.purge_status is null or s.purge_status=0) - and s.component_uuid=#{componentUuid} + and s.component_uuid=#{componentUuid,jdbcType=VARCHAR} and s.status in @@ -31,7 +31,7 @@ from snapshots s where - s.component_uuid=#{componentUuid} + s.component_uuid=#{componentUuid,jdbcType=VARCHAR} and s.status='P' and exists(select e.id from events e where e.analysis_uuid=s.uuid) @@ -42,7 +42,7 @@ from snapshots s where - s.component_uuid=#{componentUuid} + s.component_uuid=#{componentUuid,jdbcType=VARCHAR} and s.status='P' and not exists(select e.id from events e where e.analysis_uuid=s.uuid) @@ -52,7 +52,7 @@ @@ -60,7 +60,7 @@ where analysis_uuid in - #{analysisUuid} + #{analysisUuid,jdbcType=VARCHAR} @@ -69,7 +69,7 @@ where analysis_uuid in - #{analysisUuid} + #{analysisUuid,jdbcType=VARCHAR} @@ -78,11 +78,11 @@ where analysis_uuid in - #{analysisUuid} + #{analysisUuid,jdbcType=VARCHAR} and component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} @@ -91,7 +91,7 @@ where analysis_uuid in - #{analysisUuid} + #{analysisUuid,jdbcType=VARCHAR} @@ -100,7 +100,7 @@ where analysis_uuid in - #{analysisUuid} + #{analysisUuid,jdbcType=VARCHAR} @@ -109,7 +109,7 @@ where uuid in - #{analysisUuid} + #{analysisUuid,jdbcType=VARCHAR} @@ -139,7 +139,7 @@ where uuid in - #{analysisUuid} + #{analysisUuid,jdbcType=VARCHAR} @@ -155,7 +155,7 @@ where component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} and resolution is null @@ -165,7 +165,7 @@ where component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} @@ -174,7 +174,7 @@ where component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} @@ -192,7 +192,7 @@ where uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} @@ -217,7 +217,7 @@ delete from manual_measures where component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} @@ -226,7 +226,7 @@ where component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} @@ -243,7 +243,7 @@ delete from issue_changes ic where exists (select * from issues i where i.kee=ic.issue_key and i.component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} ) @@ -254,7 +254,7 @@ inner join issues on issue_changes.issue_key=issues.kee where issues.component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} @@ -262,19 +262,19 @@ delete ic from issue_changes as ic, issues as i where ic.issue_key=i.kee and i.component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} delete from issues where component_uuid in - #{componentUuid} + #{componentUuid,jdbcType=VARCHAR} - delete from file_sources where project_uuid=#{rootProjectUuid} + delete from file_sources where project_uuid=#{rootProjectUuid,jdbcType=VARCHAR} @@ -282,13 +282,13 @@ where file_uuid in - #{fileUuid} + #{fileUuid,jdbcType=VARCHAR}