Commit 879cc00
fix: qualify ambiguous id column in FollowedUsersFilter (issue #47)
On PostgreSQL, whereIn/whereNotIn with an unqualified 'id' column fails
with "column reference is ambiguous" when the user query has a JOIN in
scope (e.g. from another extension's global scope).
Qualify as 'users.id' in both branches of FollowedUsersFilter::constrain().
Also fix the test helper calls to use withQueryParams() instead of the
unsupported 'queryParams' option, so the filter is actually applied.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8eca7fb commit 879cc00
File tree
2 files changed
+8
-38
lines changed- src/Query
- tests/integration/api
2 files changed
+8
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 28 | | |
35 | 29 | | |
36 | 30 | | |
| |||
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 57 | + | |
| 58 | + | |
73 | 59 | | |
74 | 60 | | |
75 | 61 | | |
| |||
87 | 73 | | |
88 | 74 | | |
89 | 75 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 76 | + | |
| 77 | + | |
100 | 78 | | |
101 | 79 | | |
102 | 80 | | |
| |||
114 | 92 | | |
115 | 93 | | |
116 | 94 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 95 | + | |
| 96 | + | |
127 | 97 | | |
128 | 98 | | |
129 | 99 | | |
| |||
0 commit comments