Merge pull request #328 from zreed/master

Add missing SQL table prefix in statement selecting world names.
This commit is contained in:
sk89q 2014-09-02 23:30:26 -07:00
commit ca37dc0fc6

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)));
}