Patch #25066
openSort order with null placement (NULLS FIRST, NULLS LAST)
0%
Description
Added ability to sort with null placement. Sometimes it's very useful.
Tested on sqlite3, mysql, firebird, postgres.
Files
Related issues
Updated by Mischa The Evil almost 8 years ago
I find this interesting, but I don't know if this is something that is (going to be) widely used (thus not being something that might fit the core). At least, I haven't seen requests for this before. Could you maybe provide some use-case(s) describing where and how this could be used and to what purposes? And could you please provide some tests for this feature?
Updated by Andrey Lobanov (RedSoft) almost 8 years ago
I'll certianly add some tests a bit later.
So in my company projects some fields can be null, and default sort order on this fields will put not null values at the end, and null values at the top. So this feature allows you to put null values in wanted place.
Updated by Go MAEDA almost 8 years ago
- Related to Feature #6034: sorting should disregard blank fields added
Updated by Andrey Lobanov (RedSoft) over 7 years ago
- File Added_null_placement_at_order_statement_v2.patch Added_null_placement_at_order_statement_v2.patch added
- File Null_placement_tests.patch Null_placement_tests.patch added
Here 2 new tests and few old tests fixed.
Also small fix, to complete tests (attachment also contains full patch with bug fixes).
Updated by Andrey Lobanov (RedSoft) over 7 years ago
Would someone review this feature?
Updated by Vito Marolda about 7 years ago
Hello thank you very much for your job!
I am interested in your patch, and I would like to test it.
All patches must be applied? Or only v2 and test?
Updated by Marius BÄ‚LTEANU about 5 years ago
- Related to Defect #32404: Group results is different between MySQL and PostgreSQL added