Add missing SQL table prefix in statement selecting world names.

This commit is contained in:
zreed 2014-09-02 17:05:28 -04:00
parent b37014463f
commit 7d41835794

View File

@ -85,7 +85,7 @@ public List<RegionDatabase> getAll() throws StorageException {
List<RegionDatabase> stores = new ArrayList<RegionDatabase>();
Connection connection = closer.register(getConnection());
Statement stmt = connection.createStatement();
ResultSet rs = closer.register(stmt.executeQuery("SELECT name FROM world"));
ResultSet rs = closer.register(stmt.executeQuery("SELECT name FROM " + config.getTablePrefix() + "world"));
while (rs.next()) {
stores.add(get(rs.getString(1)));
}