From 05414a3e2c04f906d9e6af1057bfce3745448627 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Sat, 24 Nov 2018 10:55:49 +0100 Subject: [PATCH] Update SQLiteTileSource.java Fix truncate for sqlite --- OsmAnd/src/net/osmand/plus/SQLiteTileSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java b/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java index bcaf767092..7b3b6e4e4e 100644 --- a/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java +++ b/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java @@ -422,7 +422,7 @@ public class SQLiteTileSource implements ITileSource { if (db == null || db.isReadOnly() || onlyReadonlyAvailable) { return; } - db.execSQL("TRUNCATE TABLE tiles"); + db.execSQL("DELETE FROM tiles"); } /**