From 37fb29f8b9bb6d280970df781394c10e22678501 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Wed, 20 Apr 2016 21:22:57 +0200 Subject: [PATCH] #638 Register with Wordpress fails with SQL exception - Remove semicolon in query, looks like executeBatch() does not like it --- src/main/java/fr/xephi/authme/datasource/MySQL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/datasource/MySQL.java b/src/main/java/fr/xephi/authme/datasource/MySQL.java index 236d22e1e..5182b8597 100644 --- a/src/main/java/fr/xephi/authme/datasource/MySQL.java +++ b/src/main/java/fr/xephi/authme/datasource/MySQL.java @@ -429,7 +429,7 @@ public class MySQL implements DataSource { rs = pst.executeQuery(); if (rs.next()) { int id = rs.getInt(col.ID); - sql = "INSERT INTO " + wordpressPrefix + "usermeta (user_id, meta_key, meta_value) VALUES (?,?,?);"; + sql = "INSERT INTO " + wordpressPrefix + "usermeta (user_id, meta_key, meta_value) VALUES (?,?,?)"; pst2 = con.prepareStatement(sql); // First Name pst2.setInt(1, id);