Выполняю вот такой запрос:
public void save() {
MySQLWorker.execute("INSERT INTO `goldix`.`groups`(`name`, `prefix`, `level`, `permissions`) VALUES (?, ?, ?, ?) " +
"ON DUPLICATE KEY UPDATE `prefix`=?, `level`=?, `permissions`=?", name, prefix, level, permissions.toString(),
prefix, level, permissions.toString());
}
но он не отправляется, а выдаёт ошибку:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `name`='Dev'' at line 1.