Merge pull request #103 in MIN/mineplex from feature/player-data to develop
* commit 'c2e88c27946e1b3870b71748a936469016e4158b': Updated to a better check
This commit is contained in:
commit
453c3a65b6
@ -73,16 +73,12 @@ public class CustomDataRepository extends RepositoryBase
|
||||
|
||||
for (CustomData cd : data.getDataMap().keySet())
|
||||
{
|
||||
|
||||
executeInsert(UPDATE_DATA, new ResultSetCallable()
|
||||
if (executeUpdate(
|
||||
UPDATE_DATA,
|
||||
new ColumnInt("data", data.getDataMap().get(cd)),
|
||||
new ColumnInt("account", accountId),
|
||||
new ColumnInt("customData", cd.getId())) < 1)
|
||||
{
|
||||
@Override
|
||||
public void processResultSet(ResultSet resultSet) throws SQLException
|
||||
{
|
||||
|
||||
if (!resultSet.isBeforeFirst())
|
||||
{
|
||||
|
||||
// Not already in the DB
|
||||
executeUpdate(
|
||||
INSERT_DATA,
|
||||
@ -92,12 +88,6 @@ public class CustomDataRepository extends RepositoryBase
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
new ColumnInt("data", data.getDataMap().get(cd)),
|
||||
new ColumnInt("account", accountId),
|
||||
new ColumnInt("customData", cd.getId())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public void registerKey(String key)
|
||||
|
Loading…
Reference in New Issue
Block a user