Fix exception in processEnumMapTiles for Postgres

This commit is contained in:
Mike Primm 2022-07-30 21:13:59 -05:00
parent dc66d12916
commit b331cfaf27

View File

@ -708,7 +708,7 @@ public class PostgreSQLMapStorage extends MapStorage {
while (!done) { while (!done) {
// Query tiles for given mapkey // Query tiles for given mapkey
Statement stmt = c.createStatement(); Statement stmt = c.createStatement();
ResultSet rs = stmt.executeQuery(String.format("SELECT x,y,zoom,Format FROM %s WHERE MapID=%d OFFSET %d LIMIT %d;", tableTiles, mapKey, offset, limit)); ResultSet rs = stmt.executeQuery(String.format("SELECT x,y,zoom,Format FROM %s WHERE MapID=%d OFFSET %d LIMIT %d;", tableTiles, mapkey, offset, limit));
int cnt = 0; int cnt = 0;
while (rs.next()) { while (rs.next()) {
StorageTile st = new StorageTile(world, map, rs.getInt("x"), rs.getInt("y"), rs.getInt("zoom"), var); StorageTile st = new StorageTile(world, map, rs.getInt("x"), rs.getInt("y"), rs.getInt("zoom"), var);