Compare commits
2 Commits
d011b3a587
...
ca18d3759d
Author | SHA1 | Date | |
---|---|---|---|
ca18d3759d | |||
a7c9bb5e1b |
@ -158,7 +158,7 @@ public class DBAccessSQL extends DBAccess {
|
||||
} else {
|
||||
// TODO : Maybe connect with a temporary not specified connection interface to a db ...
|
||||
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();
|
||||
// LOGGER.info("List all tables: equals? '{}'", name);
|
||||
while (rs.next()) {
|
||||
|
@ -76,7 +76,7 @@ public abstract class DbIo implements Closeable {
|
||||
return this.config.equals(config);
|
||||
}
|
||||
|
||||
public DbConfig getCongig() {
|
||||
public DbConfig getConfig() {
|
||||
return this.config;
|
||||
}
|
||||
}
|
||||
|
@ -100,9 +100,6 @@ public class ConfigBaseVariable {
|
||||
}
|
||||
|
||||
public static String getDBName() {
|
||||
if (bdDatabase == null) {
|
||||
return "unknown";
|
||||
}
|
||||
return bdDatabase;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user