aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Server.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2011-12-13 11:51:39 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2011-12-13 11:51:39 +0000
commita5ef9a5f8b496787e7ca3f8510dea9d283105f25 (patch)
tree645b221fbaa4285901b4836cbe477ba8ddd5f645 /src/org/traccar/Server.java
parent7ffae028567080b04e75c1f5ec8801da5c8106d0 (diff)
downloadtrackermap-server-a5ef9a5f8b496787e7ca3f8510dea9d283105f25.tar.gz
trackermap-server-a5ef9a5f8b496787e7ca3f8510dea9d283105f25.tar.bz2
trackermap-server-a5ef9a5f8b496787e7ca3f8510dea9d283105f25.zip
Diffstat (limited to 'src/org/traccar/Server.java')
-rw-r--r--src/org/traccar/Server.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/Server.java b/src/org/traccar/Server.java
index f2c5752f5..94e6f7ac3 100644
--- a/src/org/traccar/Server.java
+++ b/src/org/traccar/Server.java
@@ -142,6 +142,7 @@ public class Server implements DataManager {
List deviceList = new LinkedList();
+ selectDevice.prepare();
ResultSet result = selectDevice.executeQuery();
while (result.next()) {
Device device = new Device();
@@ -168,6 +169,8 @@ public class Server implements DataManager {
}
public synchronized void setPosition(Position position) throws SQLException {
+
+ insertPosition.prepare();
insertPosition.setLong("device_id", position.getDeviceId());
insertPosition.setTimestamp("time", position.getTime());