Permalink
Browse files

POI: clear bindings in insertPointsOfInterest, fixes #900

1 parent c022b3c commit 9f8a280b51cef6d70fefdf124047b58ecb03a4ce @devemux86 devemux86 committed Nov 18, 2016
@@ -364,14 +364,14 @@ public void insertPointOfInterest(PointOfInterest poi) {
@Override
public void insertPointsOfInterest(Collection<PointOfInterest> pois) {
try {
- this.insertPoiStatement1.reset();
- this.insertPoiStatement1.clear_bindings();
- this.insertPoiStatement2.reset();
- this.insertPoiStatement2.clear_bindings();
-
this.db.exec("BEGIN;", null);
for (PointOfInterest poi : pois) {
+ this.insertPoiStatement1.reset();
+ this.insertPoiStatement1.clear_bindings();
+ this.insertPoiStatement2.reset();
+ this.insertPoiStatement2.clear_bindings();
+
this.insertPoiStatement1.bind(1, poi.getId());
this.insertPoiStatement1.bind(2, poi.getLatitude());
this.insertPoiStatement1.bind(3, poi.getLatitude());

0 comments on commit 9f8a280

Please sign in to comment.