connortechnology / ZoneMinder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
9 stars 9 forks source link

ERR | SQL-ERR 'SQLSTATE[42000]: Syntax error #81

Closed shaun-ba closed 6 years ago

shaun-ba commented 6 years ago

Another ERR i came across in logs, thought i'd log it.

2018-01-24 13:36:04.324562 | web_php |   | 238 | ERR | 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 '-25, 25' at line 1', statement was 'SELECT E.*,M.Name AS MonitorName,M.DefaultScale FROM Monitors AS M INNER JOIN Events AS E on (M.Id = E.MonitorId) WHERE 1 and ( E.StartTime >= '2018-01-24 12:36:04' and E.MonitorId = '2' ) ORDER BY E.StartTime asc limit -25, 25' params:
-- | -- | -- | -- | -- | --
connortechnology commented 6 years ago

The limit is a text box, you have entered -25,25 into it. I will have to add filtering of non-numeric input.

shaun-ba commented 6 years ago

What box? No box in the filters anywhere that i can see has -25,25 in it

shaun-ba commented 6 years ago

fixed in 1.31.29