aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}