diff options
author | Jed <Jed@192.168.1.100> | 2014-09-08 20:44:33 +0800 |
---|---|---|
committer | Jed <Jed@192.168.1.100> | 2014-09-08 20:44:33 +0800 |
commit | 237cfd39818dbb588952b0c291fddea0658fe5f8 (patch) | |
tree | 0097bd9feff1e904bc188b388f56584a1fce5d7b /src/org/traccar/model | |
parent | 6a26740a4e74b2a627ad2de4b764a0c7dfdf6ca2 (diff) | |
download | traccar-server-237cfd39818dbb588952b0c291fddea0658fe5f8.tar.gz traccar-server-237cfd39818dbb588952b0c291fddea0658fe5f8.tar.bz2 traccar-server-237cfd39818dbb588952b0c291fddea0658fe5f8.zip |
Fixed updateLatestPostion using the wrong query object to prepare the namedstament
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/DatabaseDataManager.java | 2 |
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); } } |