]> source.dussan.org Git - sonarqube.git/commitdiff
Fix MyBatis AuthorMapper for Oracle
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 3 Apr 2012 08:09:23 +0000 (10:09 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 3 Apr 2012 08:09:23 +0000 (10:09 +0200)
sonar-core/src/main/resources/org/sonar/core/user/AuthorMapper-oracle.xml

index 09bfabee9be530938b7b47f1a22b3fe7ed88262c..ab99f615cf72fe7c53112dc339ff5b71ae1f66ae 100644 (file)
@@ -3,9 +3,9 @@
 
 <mapper namespace="org.sonar.core.user.AuthorMapper">
 
-  <select id="select" parameterType="string" resultType="Author">
+  <select id="selectByLogin" parameterType="string" resultType="Author">
     SELECT id, person_id AS "personId", login, created_at AS "createdAt", updated_at AS "updatedAt"
-    FROM authors WHERE login=#{login}
+    FROM authors WHERE login=#{id}
   </select>
 
   <select id="countDeveloperLogins" parameterType="long" resultType="int">