Fix isNewDatabase()

This commit is contained in:
Fuzzlemann 2017-08-24 13:14:45 +02:00
parent a920c4254b
commit 276c9cf408
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class VersionTable extends Table {
set = statement.executeQuery();
return set.next();
return !set.next();
} finally {
endTransaction(statement);
close(set, statement);

View File

@ -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