aboutsummaryrefslogtreecommitdiff
path: root/setup/unix/traccar.xml
diff options
context:
space:
mode:
authorGábor Somogyi <gabor.g.somogyi@gmail.com>2016-04-27 22:22:08 +0200
committerGábor Somogyi <gabor.g.somogyi@gmail.com>2016-04-27 22:34:17 +0200
commitbf68718e05f811ffeb2b4b57acab56dca3e7de56 (patch)
tree5853e81ae5d08e996d1600504027c7a870202643 /setup/unix/traccar.xml
parent44f026f881efa6207ab79fb5bada20ab67f018a0 (diff)
downloadtrackermap-server-bf68718e05f811ffeb2b4b57acab56dca3e7de56.tar.gz
trackermap-server-bf68718e05f811ffeb2b4b57acab56dca3e7de56.tar.bz2
trackermap-server-bf68718e05f811ffeb2b4b57acab56dca3e7de56.zip
Command framework ugly hack version
Diffstat (limited to 'setup/unix/traccar.xml')
-rw-r--r--setup/unix/traccar.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/unix/traccar.xml b/setup/unix/traccar.xml
index 2ddf6551f..8dfcf6386 100644
--- a/setup/unix/traccar.xml
+++ b/setup/unix/traccar.xml
@@ -152,6 +152,10 @@
SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime;
</entry>
+ <entry key='database.selectLatestPosition'>
+ SELECT TOP 1 * FROM positions WHERE deviceId = :deviceId AND protocol IS NOT NULL;
+ </entry>
+
<entry key='database.insertPosition'>
INSERT INTO positions (deviceId, protocol, serverTime, deviceTime, fixTime, valid, latitude, longitude, altitude, speed, course, address, attributes)
VALUES (:deviceId, :protocol, :now, :deviceTime, :fixTime, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes);