Skip to content

Commit

Permalink
Added another parameter to the insert statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cossacksman committed Jan 7, 2017
1 parent 28e8854 commit 0a9e7c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void saveData(Map<UUID, Island> islands) {
* @param island the island to save
*/
public void saveIsland(Island island) {
String sql = "REPLACE INTO islands(island, owner, claim, spawnX, spawnY, spawnZ, locked) VALUES(?, ?, ?, ?, ?, ?)";
String sql = "REPLACE INTO islands(island, owner, claim, spawnX, spawnY, spawnZ, locked) VALUES(?, ?, ?, ?, ?, ?, ?)";

try (PreparedStatement statement = getConnection().prepareStatement(sql)) {
statement.setString(1, island.getUniqueId().toString());
Expand Down

0 comments on commit 0a9e7c3

Please sign in to comment.