forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7665e7b

Thomas G. Lockhart
Allows the following query to succeed: "SELECT NULL ORDER BY 1;"
There are three or four cases in transformSortClause() and I had fixedonly one case for UNION. A second case is now fixed, in the same way; Iassigned INT4OID to the column type for the "won't actually happen"sort. Didn't want to skip the code entirely, since the backend needs to_try_ a sort to get the NULLs right. I'm not certain under whatcircumstances the other cases are invoked and these are not yetfixed up, though perhaps they don't need to be...1 parent39844ac commit7665e7b
1 file changed
+35
-1
lines changedLines changed: 35 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
320 | 324 |
| |
321 | 325 |
| |
322 | 326 |
| |
| |||
326 | 330 |
| |
327 | 331 |
| |
328 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
329 | 338 |
| |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
330 | 344 |
| |
331 | 345 |
| |
332 | 346 |
| |
| |||
389 | 403 |
| |
390 | 404 |
| |
391 | 405 |
| |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
392 | 414 |
| |
393 | 415 |
| |
394 | 416 |
| |
| |||
423 | 445 |
| |
424 | 446 |
| |
425 | 447 |
| |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
426 | 453 |
| |
427 | 454 |
| |
428 | 455 |
| |
| |||
485 | 512 |
| |
486 | 513 |
| |
487 | 514 |
| |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
488 | 522 |
| |
489 | 523 |
| |
490 | 524 |
| |
|
0 commit comments
Comments
(0)