aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r--src/main/java/com/juick/service/UserServiceImpl.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java
index 4b07d882..b9301d06 100644
--- a/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/src/main/java/com/juick/service/UserServiceImpl.java
@@ -578,9 +578,8 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
public boolean linkTwitterAccount(
final User user, final String accessToken, final String accessTokenSecret, final String screenName) {
return getJdbcTemplate().update("INSERT INTO twitter(user_id,access_token,access_token_secret,uname) " +
- "VALUES (?,?,?,?)" +
- " ON DUPLICATE KEY UPDATE access_token=?,access_token_secret=?,uname=?",
- user.getUid(), accessToken, accessTokenSecret, screenName, accessToken, accessTokenSecret, screenName) > 0;
+ "VALUES (?,?,?,?)",
+ user.getUid(), accessToken, accessTokenSecret, screenName) > 0;
}
@Transactional(readOnly = true)