NULLS FIRST not implemented
Just noticed that ORDER BY col NULLS FIRST is not yet implemented.
Understandable if not on the agenda, but thought I'd flag it just in case.
Thanks!
Thanks :)
I'll add that to my todolist, but I dont have time to work on it these days :(
Looks like you ended up having time :) — this was implemented in 71d3471c87312d7e5d03e3025aaa24c55c06afbd.
Oh, but NULLS FIRST with ASC is broken. This test should pass:
it('can order by asc with nulls first', () => {
expect(many(`create table test(val text);
insert into test values ('b'), ('a'), (null);
select t.val as value from test t order by t.val asc nulls first`))
.to.deep.equal([
{ value: null }
, { value: 'a' }
, { value: 'b' }
]);
});
but it fails.
Posted a fix in https://github.com/oguimbal/pg-mem/pull/296/
should be fixed with [email protected] thanks