Generated SQL for a partition is now correct (atleast for simple cases) Switched to C++ 20 so the ranges library can be used in this case to filter unwanted items.