Patch #25066
open
Sort order with null placement (NULLS FIRST, NULLS LAST)
Added by Andrey Lobanov (RedSoft) almost 8 years ago.
Updated about 7 years ago.
Description
Added ability to sort with null placement. Sometimes it's very useful.
Tested on sqlite3, mysql, firebird, postgres.
Files
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?
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.
- Related to Feature #6034: sorting should disregard blank fields added
Here 2 new tests and few old tests fixed.
Also small fix, to complete tests (attachment also contains full patch with bug fixes).
Would someone review this feature?
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?
- Related to Defect #32404: Group results is different between MySQL and PostgreSQL added
Also available in: Atom
PDF