Adhoc queries work but not stored queries - quoting issue
Posted: Fri Jun 02, 2006 4:57 pm
Hi folks,
Happy ZoneMinder user here, delurking for the first time. My problem is
that certain types of filters work just fine in adhoc mode, but when they are stored. I see the following in the log:
zmfilter[7774]: ERR [Can't execute filter 'select E.Id,E.MonitorId,M.Name as Moni
torName,M.DefaultRate,M.DefaultScale,E.Name,E.Cause,E.Notes,E.StartTime,unix_timestamp(E.StartTime) as
Time,E.Length,E.Frames,E.AlarmFrames,E.TotScore,E.AvgScore,E.MaxScore,E.Archived,E.Videoed,E.Uploaded
,E.Emailed,E.Messaged,E.Executed from Events as E inner join Monitors as M on M.Id = E.MonitorId where
not isnull(E.EndTime) and ( M.Name = 'Basement' and E.Cause = Motion ) and ( E.Emailed = 0 ) order by
E.StartTime desc limit 0, 10', ignoring: Unknown column 'Motion' in 'where clause']
I believe E.Cause = Motion
should be E.Cause = 'Motion'
Thanks,
Bob
Happy ZoneMinder user here, delurking for the first time. My problem is
that certain types of filters work just fine in adhoc mode, but when they are stored. I see the following in the log:
zmfilter[7774]: ERR [Can't execute filter 'select E.Id,E.MonitorId,M.Name as Moni
torName,M.DefaultRate,M.DefaultScale,E.Name,E.Cause,E.Notes,E.StartTime,unix_timestamp(E.StartTime) as
Time,E.Length,E.Frames,E.AlarmFrames,E.TotScore,E.AvgScore,E.MaxScore,E.Archived,E.Videoed,E.Uploaded
,E.Emailed,E.Messaged,E.Executed from Events as E inner join Monitors as M on M.Id = E.MonitorId where
not isnull(E.EndTime) and ( M.Name = 'Basement' and E.Cause = Motion ) and ( E.Emailed = 0 ) order by
E.StartTime desc limit 0, 10', ignoring: Unknown column 'Motion' in 'where clause']
I believe E.Cause = Motion
should be E.Cause = 'Motion'
Thanks,
Bob