I am using the 2023 xBase driver in dBeaver, and receiving this error:
SQL Error [HY000]: ORDER BY is mandated in the OVER clause for the function row_number.
The Query is:
select distinct
'BNK' swityp,
cast(c.cbank_acct as varchar) oldkey,
row_number () over (order by g.cid) newkey,
'' del,
g.cgroup_cod,
g.acct_no,
g.acct_descr,
g.active,
g.cid
from checkreg c
join glacct g on g.cid = c.cbank_acct
order by g.cid
As you can see I have an ORDER BY in the OVER clause. BTW, changing it to upper case has no effect. What am I missing? Does xBase only partially support row_number? Is there any documentation on the xBase driver and which syntax it supports?