From: Julien Lancelot Date: Mon, 4 Dec 2017 09:32:40 +0000 (+0100) Subject: SONAR-10134 Add missing JDBC type in quality gate mapper X-Git-Tag: 7.0-RC1~157 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f305934d7a54f0d77200a22d41838545938f3bde;p=sonarqube.git SONAR-10134 Add missing JDBC type in quality gate mapper --- diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/QualityGateMapper.xml b/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/QualityGateMapper.xml index 32eeef3b838..00070e4180c 100644 --- a/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/QualityGateMapper.xml +++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/QualityGateMapper.xml @@ -5,12 +5,12 @@ insert into quality_gates (uuid, name, is_built_in, created_at, updated_at) - values (#{uuid}, #{name}, #{isBuiltIn}, #{createdAt}, #{updatedAt}) + values (#{uuid, jdbcType=VARCHAR}, #{name, jdbcType=VARCHAR}, #{isBuiltIn, jdbcType=BOOLEAN}, #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP}) INSERT INTO org_quality_gates (uuid, organization_uuid, quality_gate_uuid) - VALUES (#{uuid}, #{organizationUuid}, #{qualityGateUuid}) + VALUES (#{uuid, jdbcType=VARCHAR}, #{organizationUuid, jdbcType=VARCHAR}, #{qualityGateUuid, jdbcType=VARCHAR}) @@ -28,7 +28,7 @@ select from quality_gates - where name=#{name} + where name=#{name, jdbcType=VARCHAR} @@ -54,7 +54,7 @@ select from quality_gates - where id=#{id} + where id=#{id, jdbcType=BIGINT}