forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit505b518
committed
Detect case of invalid use of GROUP BY when there are no
aggregate functions, as inselect a, b from foo group by a;The ungrouped reference to b is not kosher, but formerly we neglected tocheck this unless there was an aggregate function somewhere in the query.1 parent57455fc commit505b518
2 files changed
+19
-14
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
376 |
| - | |
| 376 | + | |
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
| |||
997 | 997 |
| |
998 | 998 |
| |
999 | 999 |
| |
1000 |
| - | |
| 1000 | + | |
1001 | 1001 |
| |
1002 | 1002 |
| |
1003 | 1003 |
| |
|
Lines changed: 16 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 |
| |
181 | 184 |
| |
182 | 185 |
| |
183 | 186 |
| |
184 | 187 |
| |
185 | 188 |
| |
186 |
| - | |
| 189 | + | |
| 190 | + | |
187 | 191 |
| |
188 | 192 |
| |
189 |
| - | |
190 |
| - | |
191 |
| - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
192 | 198 |
| |
193 | 199 |
| |
194 | 200 |
| |
195 | 201 |
| |
196 | 202 |
| |
197 |
| - | |
| 203 | + | |
198 | 204 |
| |
199 | 205 |
| |
200 | 206 |
| |
| |||
214 | 220 |
| |
215 | 221 |
| |
216 | 222 |
| |
217 |
| - | |
218 | 223 |
| |
219 | 224 |
| |
220 | 225 |
| |
|
0 commit comments
Comments
(0)