diff options
Diffstat (limited to 'src/org/traccar/Server.java')
-rw-r--r-- | src/org/traccar/Server.java | 3 |
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()); |