Don't use ORDER BY in VIEWS (as this is invalid SQL, why does this even work sometimes in SQLite) (fixes #33)

This commit is contained in:
Bernd Bestel
2018-08-03 08:26:59 +02:00
parent 4cc2d39063
commit 678579e933
3 changed files with 20 additions and 2 deletions

View File

@@ -3,4 +3,3 @@ AS
SELECT battery_id, MAX(tracked_time) AS last_tracked_time
FROM battery_charge_cycles
GROUP BY battery_id
ORDER BY MAX(tracked_time) DESC