mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 13:07:29 +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>();
|
List<RegionDatabase> stores = new ArrayList<RegionDatabase>();
|
||||||
Connection connection = closer.register(getConnection());
|
Connection connection = closer.register(getConnection());
|
||||||
Statement stmt = connection.createStatement();
|
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()) {
|
while (rs.next()) {
|
||||||
stores.add(get(rs.getString(1)));
|
stores.add(get(rs.getString(1)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user