Commit 932631a
fix: apply WHERE clause check for cross detection in geofence hooks
The WHERE clause was being ignored for cross detection events in
geofence/SETHOOK commands. This happened because testObject() (which
checks WHERE clauses) was only called when an object was spatially
inside the fence. For cross events, both old and new object positions
are outside the fence, so testObject() was never invoked.
This fix adds an explicit WHERE clause check (via fieldMatch) in the
cross detection path before proceeding with event emission. This
ensures that cross events are only triggered for objects that match
the WHERE clause conditions.
Fixes #795
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>1 parent 48aa3d2 commit 932631a
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| |||
0 commit comments