aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorJed <Jed@192.168.1.100>2014-09-08 20:44:33 +0800
committerJed <Jed@192.168.1.100>2014-09-08 20:44:33 +0800
commit237cfd39818dbb588952b0c291fddea0658fe5f8 (patch)
tree0097bd9feff1e904bc188b388f56584a1fce5d7b /src/org
parent6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2 (diff)
downloadtrackermap-server-237cfd39818dbb588952b0c291fddea0658fe5f8.tar.gz
trackermap-server-237cfd39818dbb588952b0c291fddea0658fe5f8.tar.bz2
trackermap-server-237cfd39818dbb588952b0c291fddea0658fe5f8.zip
Fixed updateLatestPostion using the wrong query object to prepare the namedstament
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/model/DatabaseDataManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/model/DatabaseDataManager.java b/src/org/traccar/model/DatabaseDataManager.java
index 5c1b292af..adcddd73d 100644
--- a/src/org/traccar/model/DatabaseDataManager.java
+++ b/src/org/traccar/model/DatabaseDataManager.java
@@ -212,7 +212,7 @@ public class DatabaseDataManager implements DataManager {
String query = queryUpdateLatestPositionTemplate;
query = query.replace("_database_", this.getDeviceById(position.getDeviceId()).getDatabase());
if (query != null) {
- queryAddPosition = new NamedParameterStatement(globalConnection, query);
+ queryUpdateLatestPosition = new NamedParameterStatement(globalConnection, query);
}
}