Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL syntax error when running archive filtering #3425

Closed
dlakatos847 opened this issue Feb 5, 2022 · 2 comments
Closed

SQL syntax error when running archive filtering #3425

dlakatos847 opened this issue Feb 5, 2022 · 2 comments

Comments

@dlakatos847
Copy link

Describe Your Environment

  • ZoneMinder v1.36.12
  • Installed from rpm
  • Debian GNU/Linux 11 (bullseye)

Describe the bug
I'd like to delete all unarchived events. The unarchived events are not deleted.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Filters
  2. Select "Archive status" "equal to" "Unarchived only"
  3. Tick Delete all matches
  4. Click Execute

Expected behavior
All unarchived events deleted.

Debug Logs

Feb 05 22:02:20 zoneminder zmfilter_11[2587]: ERR [Can't execute filter 'SELECT E.*, unix_timestamp(E.StartDateTime) as Time
                                                       FROM Events as E WHERE (  E.Archived =
                                               ) ORDER BY E.StartDateTime ASC LIMIT 0,100', ignoring: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY E.StartDateTime ASC LIMIT 0,100' at line 3]

E.Archived value is not inserted properly.

@welcome
Copy link

welcome bot commented Feb 5, 2022

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

@lthrhx
Copy link

lthrhx commented Feb 14, 2022

Interesting.

Could you upload a screenshot of the filters page and its settings to get that error?

connortechnology pushed a commit that referenced this issue Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants