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
1 changed files with 1 additions and 1 deletions

View File

@ -708,7 +708,7 @@ public class PostgreSQLMapStorage extends MapStorage {
while (!done) {
// Query tiles for given mapkey
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;
while (rs.next()) {
StorageTile st = new StorageTile(world, map, rs.getInt("x"), rs.getInt("y"), rs.getInt("zoom"), var);