Page 1 of 1

SQL "ORDER BY" Errors

Posted: Thu Aug 06, 2020 1:23 pm
by rbu
Hi

We today updated from 1.34.16 to 1.34.17 and now we get SQL errors when accessing a camera (to see the events):

SQL-ERR 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC limit 20' at line 1', statement was 'SELECT `Id`, `MonitorId`, `Name`, `Cause`, `Notes`, `StartTime`, date_format( StartTime, '%y/%m/%d %H:%i:%S' ) as StartTimeShort, `EndTime`, `Width`, `Height`, `Length`, `Frames`, `AlarmFrames`, `TotScore`, `AvgScore`, `MaxScore` FROM Events WHERE Events.MonitorId = :selector0 ORDER BY DESC limit 20' params:26

According to me: The ORDER BY <field> is missing

DB Update is done...

Any idea?

-Reto

Re: SQL "ORDER BY" Errors

Posted: Thu Aug 06, 2020 2:45 pm
by iconnor
Fix in 1.34.18. Packages building.

Re: SQL "ORDER BY" Errors

Posted: Fri Aug 07, 2020 4:47 am
by rbu
Thanks - looks good for me!