The syntax for FETCH FIRST allows the <fetch first quantity> to beabsent (implying 1).
We implement this correctly for ONLY, but WITH TIES didn't get the memo.
Patch attached.-- Vik Fearing