From f305934d7a54f0d77200a22d41838545938f3bde Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 4 Dec 2017 10:32:40 +0100 Subject: [PATCH] SONAR-10134 Add missing JDBC type in quality gate mapper --- .../db/qualitygate/QualityGateMapper.xml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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}