added debug mode

added debug messages
moved first reaction add code
This commit is contained in:
AffluentAvo
2020-11-16 21:04:34 +01:00
parent 5774782238
commit 0ea7842d56
8 changed files with 84 additions and 50 deletions
@@ -10,7 +10,7 @@ public class Database {
/**
* SQLite Data
* Set this data if you use DBType#SQLite
*
* <p>
* field filePath - This can either be a relative or absolute path.
* ex: sokobot.db
* or: C:/sqlite/db/sokobot.db
@@ -82,8 +82,7 @@ public class Database {
public ResultSet query(String sql) {
try {
ResultSet rs = con.prepareStatement(sql).executeQuery();
return rs;
return con.prepareStatement(sql).executeQuery();
} catch (SQLException e) {
e.printStackTrace();
return null;