diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm index 7b3efad46..f483e545c 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm @@ -413,12 +413,10 @@ sub Sql { $sql .= ' LIMIT 0,'.$filter_expr->{limit}; } if ($$self{LockRows}) { - $sql .= ' FOR UPDATE OF E' - } else { - $sql .= ' FOR SHARE OF E' - } - if ($filter_expr->{skip_locked}) { - $sql .= ' SKIP LOCKED'; + $sql .= ' FOR UPDATE' + if ($filter_expr->{skip_locked}) { + $sql .= ' SKIP LOCKED'; + } } $self->{Sql} = $sql; } # end if has Sql