aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-09 12:19:59 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-09 12:19:59 +0100
commit3dcf41ab1127fe59b943c1e79f173fcbd45e9e6c (patch)
treee35f910db99f022d11a0d43c29c7c1bdb6cbe766
parent5053107fc465f952e63d42308ee621023db855e8 (diff)
downloadsonarqube-3dcf41ab1127fe59b943c1e79f173fcbd45e9e6c.tar.gz
sonarqube-3dcf41ab1127fe59b943c1e79f173fcbd45e9e6c.zip
Add missing jdbcType in UserMapper
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml b/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml
index 16b370594d7..42a16e13139 100644
--- a/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/user/UserMapper.xml
@@ -135,11 +135,13 @@
<insert id="insert" parameterType="User" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
INSERT INTO users (login, name, email, active, scm_accounts, salt, crypted_password, created_at, updated_at)
- VALUES (#{login}, #{name}, #{email}, #{active}, #{scmAccounts}, #{salt}, #{cryptedPassword}, #{createdAt}, #{updatedAt})
+ VALUES (#{login,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{active,jdbcType=BOOLEAN}, #{scmAccounts,jdbcType=VARCHAR},
+ #{salt,jdbcType=VARCHAR}, #{cryptedPassword,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT})
</insert>
<insert id="update" parameterType="User" useGeneratedKeys="false">
- UPDATE users set name=#{name}, email=#{email}, active=#{active}, scm_accounts=#{scmAccounts}, salt=#{salt}, crypted_password=#{cryptedPassword}, updated_at=#{updatedAt}
+ UPDATE users set name=#{name,jdbcType=VARCHAR}, email=#{email,jdbcType=VARCHAR}, active=#{active,jdbcType=BOOLEAN}, scm_accounts=#{scmAccounts,jdbcType=VARCHAR},
+ salt=#{salt,jdbcType=VARCHAR}, crypted_password=#{cryptedPassword,jdbcType=BIGINT}, updated_at=#{updatedAt,jdbcType=BIGINT}
WHERE login = #{login}
</insert>