SQL "ORDER BY" Errors

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
rbu
Posts: 4
Joined: Thu Aug 06, 2020 1:21 pm

SQL "ORDER BY" Errors

Post 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
User avatar
iconnor
Posts: 3375
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: SQL "ORDER BY" Errors

Post by iconnor »

Fix in 1.34.18. Packages building.
rbu
Posts: 4
Joined: Thu Aug 06, 2020 1:21 pm

Re: SQL "ORDER BY" Errors

Post by rbu »

Thanks - looks good for me!
Post Reply