Unknown column 'E.StartWeekday'

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
mrvoiceua
Posts: 1
Joined: Thu Mar 28, 2019 3:46 pm

Unknown column 'E.StartWeekday'

Post by mrvoiceua »

Hi.

I create new filter.
I run the test and get the error.

Unknown column 'E.StartWeekday' in 'where clause'

Вy eating it should have been
weekday( E.StartTime ) >= 0

zoneminder.x86_64 1.32.3-1.el7 @rpmfusion-free-updates



On timeline_functions.php at first glance all right.

Code: Select all

 case 'StartWeekday':
         $sqlValue = "weekday( E.StartTime )";
 break;

 case 'StartWeekday':
         $value = "weekday( '".strftime(STRF_FMT_DATETIME_DB, strtotime($value))."' )";
 break;
Attachments
zm2.JPG
zm2.JPG (92.77 KiB) Viewed 1463 times
zm1.JPG
zm1.JPG (125.26 KiB) Viewed 1463 times
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unknown column 'E.StartWeekday'

Post by iconnor »

The issue is on line 180 of Filter.pm (/usr/share/perl5/ZoneMinder/Filter.pm) It should be StartWeekDay instead of Weekday.
MrFlopp
Posts: 1
Joined: Wed Aug 21, 2019 8:50 pm

Re: Unknown column 'E.StartWeekday'

Post by MrFlopp »

Still a problem in current version for Ubuntu.

Had a quick look at the code, seems EndWeekday is correct in filters - you can use that until bug is fixed.
Post Reply