Commit 5cf8513
fix: SHOW WIDGETS WHERE LIKE filter silently degraded to equality match
Visitor set Operator="LIKE" (upper-case) but executor compared with
"like" (lower-case), so the LIKE branch was never taken and the filter
fell through to an equality check, returning no results.
Fix both filter loops in cmd_widgets.go to use strings.EqualFold.
Adds bug-test 418 as a regression script.
Closes #418
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 121c123 commit 5cf8513
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments