mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 19:16:40 +01:00
Add missing SQL table prefix in statement selecting world names.
This commit is contained in:
parent
b37014463f
commit
7d41835794
@ -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