diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-17 19:54:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-17 19:54:33 +1200 |
commit | 1a4dbe41223f253d649fba8b506b70c7a447a1ff (patch) | |
tree | 840301185bb1adfef285d487dc68043adfddca68 /src/org/traccar/database | |
parent | 31153730de44a31b87c8131d95de1127d2758508 (diff) | |
download | traccar-server-1a4dbe41223f253d649fba8b506b70c7a447a1ff.tar.gz traccar-server-1a4dbe41223f253d649fba8b506b70c7a447a1ff.tar.bz2 traccar-server-1a4dbe41223f253d649fba8b506b70c7a447a1ff.zip |
Apply custom marker style
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 807a75f34..2b5373197 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -34,7 +34,6 @@ import javax.naming.InitialContext; import javax.sql.DataSource; import org.traccar.Context; import org.traccar.helper.DriverDelegate; -import org.traccar.helper.Hashing; import org.traccar.helper.Log; import org.traccar.http.JsonConverter; import org.traccar.model.Device; @@ -200,6 +199,10 @@ public class DataManager { position.setLatitude(-36.8932371); position.setLongitude(174.7743053); addPosition(position); + + QueryBuilder.create(dataSource, properties.getProperty("database.updateLatestPosition")) + .setObject(position) + .executeUpdate(); } catch (SQLException error) { Log.warning(error); |