mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +01:00
Merge pull request #328 from zreed/master
Add missing SQL table prefix in statement selecting world names.
This commit is contained in:
commit
ca37dc0fc6
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user