Compare commits

...

2 Commits

3 changed files with 2 additions and 5 deletions

View File

@ -158,7 +158,7 @@ public class DBAccessSQL extends DBAccess {
} else { } else {
// TODO : Maybe connect with a temporary not specified connection interface to a db ... // TODO : Maybe connect with a temporary not specified connection interface to a db ...
final PreparedStatement ps = this.db.getConnection() final PreparedStatement ps = this.db.getConnection()
.prepareStatement("SHOW TABLES IN `" + this.db.getCongig().getDbName() + "`"); .prepareStatement("SHOW TABLES IN `" + this.db.getConfig().getDbName() + "`");
final ResultSet rs = ps.executeQuery(); final ResultSet rs = ps.executeQuery();
// LOGGER.info("List all tables: equals? '{}'", name); // LOGGER.info("List all tables: equals? '{}'", name);
while (rs.next()) { while (rs.next()) {

View File

@ -76,7 +76,7 @@ public abstract class DbIo implements Closeable {
return this.config.equals(config); return this.config.equals(config);
} }
public DbConfig getCongig() { public DbConfig getConfig() {
return this.config; return this.config;
} }
} }

View File

@ -100,9 +100,6 @@ public class ConfigBaseVariable {
} }
public static String getDBName() { public static String getDBName() {
if (bdDatabase == null) {
return "unknown";
}
return bdDatabase; return bdDatabase;
} }