aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-17 11:14:32 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-17 11:14:32 +1200
commit31153730de44a31b87c8131d95de1127d2758508 (patch)
tree6dcfe3a6f54cd37b8487a34f141da417dad95461 /debug.xml
parentfe83a2a83d086f8af8579f2a6c546f3576067964 (diff)
downloadtrackermap-server-31153730de44a31b87c8131d95de1127d2758508.tar.gz
trackermap-server-31153730de44a31b87c8131d95de1127d2758508.tar.bz2
trackermap-server-31153730de44a31b87c8131d95de1127d2758508.zip
Load latest positions from db
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.xml b/debug.xml
index 1074d9eba..698f7bdc9 100644
--- a/debug.xml
+++ b/debug.xml
@@ -194,6 +194,10 @@
VALUES (:deviceId, NOW(), :time, :time, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :other);
</entry>
+ <entry key='database.selectLatestPositions'>
+ SELECT * FROM position WHERE id IN (SELECT positionId FROM device);
+ </entry>
+
<entry key='database.updateLatestPosition'>
UPDATE device SET positionId = :id WHERE id = :deviceId;
</entry>