Finished linking augmented

This commit is contained in:
boy0001 2015-05-01 22:42:10 +10:00
parent 435e33d079
commit 1e6db07e3a
4 changed files with 20 additions and 17 deletions

View file

@ -285,7 +285,7 @@ public class SQLManager implements AbstractDB {
public String getCreateSQL() {
return CREATE_PLOT;
}
@Override
public void setMySQL(PreparedStatement stmt, int i, Plot plot) throws SQLException {
stmt.setInt((i * 4) + 1, plot.id.x);
@ -340,7 +340,7 @@ public class SQLManager implements AbstractDB {
if (subList.size() == 0) {
return;
}
String statement = mod.getCreateMySQL(packet);
String statement = mod.getCreateMySQL(subList.size());
PreparedStatement stmt = null;
try {
stmt = this.connection.prepareStatement(statement.toString());
@ -352,7 +352,7 @@ public class SQLManager implements AbstractDB {
stmt.close();
} catch (final Exception e) {
try {
String unionstmt = mod.getCreateSQLite(packet);
String unionstmt = mod.getCreateSQLite(subList.size());
stmt = this.connection.prepareStatement(unionstmt.toString());
for (int i = 0; i < subList.size(); i++) {
mod.setSQLite(stmt, i, subList.get(i));