mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
Fix isNewDatabase()
This commit is contained in:
parent
a920c4254b
commit
276c9cf408
@ -46,7 +46,7 @@ public class VersionTable extends Table {
|
||||
|
||||
set = statement.executeQuery();
|
||||
|
||||
return set.next();
|
||||
return !set.next();
|
||||
} finally {
|
||||
endTransaction(statement);
|
||||
close(set, statement);
|
||||
|
@ -3,6 +3,7 @@ package test.java.main.java.com.djrapitops.plan.database;
|
||||
import main.java.com.djrapitops.plan.Plan;
|
||||
import main.java.com.djrapitops.plan.data.TPS;
|
||||
import main.java.com.djrapitops.plan.data.WebUser;
|
||||
import main.java.com.djrapitops.plan.database.databases.SQLDB;
|
||||
import main.java.com.djrapitops.plan.database.databases.SQLiteDB;
|
||||
import main.java.com.djrapitops.plan.utilities.MiscUtils;
|
||||
import main.java.com.djrapitops.plan.utilities.PassEncryptUtil;
|
||||
@ -33,7 +34,7 @@ import static org.junit.Assert.assertTrue;
|
||||
public class DatabaseCommitTest {
|
||||
|
||||
private Plan plan;
|
||||
private SQLiteDB db;
|
||||
private SQLDB db;
|
||||
private int rows;
|
||||
|
||||
@Before
|
||||
|
Loading…
Reference in New Issue
Block a user