mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-26 10:37:44 +01:00
More SQLite fixes for scan
This commit is contained in:
parent
8beba92f8e
commit
e13a515baf
@ -647,7 +647,7 @@ public class SQLiteMapStorage extends MapStorage {
|
|||||||
c = getConnection(); // Do inside loop - single threaded sqlite will have issues otherwise....
|
c = getConnection(); // Do inside loop - single threaded sqlite will have issues otherwise....
|
||||||
// Query tiles for given mapkey
|
// Query tiles for given mapkey
|
||||||
Statement stmt = c.createStatement();
|
Statement stmt = c.createStatement();
|
||||||
ResultSet rs = doExecuteQuery(stmt, String.format("SELECT x,y,zoom,Format FROM Tiles WHERE MapID=%d OFFSET %d LIMIT %d", mapkey, offset, limit));
|
ResultSet rs = doExecuteQuery(stmt, String.format("SELECT x,y,zoom,Format FROM Tiles WHERE MapID=%d LIMIT %d OFFSET %d;", mapkey, limit, offset));
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user