diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-17 11:14:32 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-17 11:14:32 +1200 |
commit | 31153730de44a31b87c8131d95de1127d2758508 (patch) | |
tree | 6dcfe3a6f54cd37b8487a34f141da417dad95461 /debug.xml | |
parent | fe83a2a83d086f8af8579f2a6c546f3576067964 (diff) | |
download | trackermap-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.xml | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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> |