diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-12-27 10:21:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-27 10:21:19 -0800 |
commit | 790db6295f130e64c8346f13985dd0c15f938b40 (patch) | |
tree | 3fdb5bfc3bdb695bc29bde4105f22ac2da41e9cd /setup/default.xml | |
parent | 19f170b8c147935c8df4044a4fa3b6456baad6c7 (diff) | |
parent | 41453ca2ee76372a031ea206c264c1c7cde58ee6 (diff) | |
download | trackermap-server-790db6295f130e64c8346f13985dd0c15f938b40.tar.gz trackermap-server-790db6295f130e64c8346f13985dd0c15f938b40.tar.bz2 trackermap-server-790db6295f130e64c8346f13985dd0c15f938b40.zip |
Merge pull request #4740 from soshial/relative_filtering
Add support for relative filtering
Diffstat (limited to 'setup/default.xml')
-rw-r--r-- | setup/default.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/default.xml b/setup/default.xml index 6c0eef111..a592bbbed 100644 --- a/setup/default.xml +++ b/setup/default.xml @@ -51,6 +51,10 @@ SELECT * FROM tc_positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime </entry> + <entry key='database.selectPrecedingPosition'> + SELECT * FROM tc_positions WHERE deviceId = :deviceId AND fixTime <= :time ORDER BY fixTime DESC LIMIT 1 + </entry> + <entry key='database.selectLatestPositions'> SELECT tc_positions.* FROM tc_positions INNER JOIN tc_devices ON tc_positions.id = tc_devices.positionid; </entry> |