diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-10-12 14:04:05 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-10-13 12:13:10 +0200 |
commit | 2217e1c750383775bf08f8876ce5af7eea50782c (patch) | |
tree | ea9c49456f432c11789999a80da56f0c632347ad | |
parent | a103e02d714f1d6d603039dc6265a50b0744f448 (diff) | |
download | sonarqube-2217e1c750383775bf08f8876ce5af7eea50782c.tar.gz sonarqube-2217e1c750383775bf08f8876ce5af7eea50782c.zip |
Improve formatting of insert/update requests
-rw-r--r-- | sonar-db/src/main/resources/org/sonar/db/user/UserTokenMapper.xml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sonar-db/src/main/resources/org/sonar/db/user/UserTokenMapper.xml b/sonar-db/src/main/resources/org/sonar/db/user/UserTokenMapper.xml index 3078c44137e..81e30144887 100644 --- a/sonar-db/src/main/resources/org/sonar/db/user/UserTokenMapper.xml +++ b/sonar-db/src/main/resources/org/sonar/db/user/UserTokenMapper.xml @@ -11,8 +11,17 @@ </sql> <insert id="insert" parameterType="UserToken" keyColumn="id" useGeneratedKeys="true" keyProperty="id"> - INSERT INTO user_tokens (login, name, token_hash, created_at) - VALUES (#{login,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{tokenHash,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT}) + insert into user_tokens ( + login, + name, + token_hash, + created_at + ) values ( + #{login,jdbcType=VARCHAR}, + #{name,jdbcType=VARCHAR}, + #{tokenHash,jdbcType=VARCHAR}, + #{createdAt,jdbcType=BIGINT} + ) </insert> <select id="selectByTokenHash" parameterType="String" resultType="UserToken"> |