Hello
The Beautifier fails to parse the following piece of code:
SELECT d.dlr_id,
d.x_shop_cd,
row_number() over(PARTITION BY d.x_shop_cd
ORDER BY CASE WHEN dc.dlr_id IS NULL THEN 1 ELSE 2 END, d.dlr_id) rn
FROM dealers d
A workaround for this is to add brackets:
SELECT d.dlr_id,
d.x_shop_cd,
row_number() over(PARTITION BY d.x_shop_cd
ORDER BY (CASE WHEN dc.dlr_id IS NULL THEN 1 ELSE 2 END), d.dlr_id) rn
FROM dealers d
Can you please add it to the bug's list? I use 32-bit version (until PasteOptions for 64-bit arrives :grin: ) , Version 11.0.5.1775
Thanks!
The Beautifier fails to parse the following piece of code:
SELECT d.dlr_id,
d.x_shop_cd,
row_number() over(PARTITION BY d.x_shop_cd
ORDER BY CASE WHEN dc.dlr_id IS NULL THEN 1 ELSE 2 END, d.dlr_id) rn
FROM dealers d
A workaround for this is to add brackets:
SELECT d.dlr_id,
d.x_shop_cd,
row_number() over(PARTITION BY d.x_shop_cd
ORDER BY (CASE WHEN dc.dlr_id IS NULL THEN 1 ELSE 2 END), d.dlr_id) rn
FROM dealers d
Can you please add it to the bug's list? I use 32-bit version (until PasteOptions for 64-bit arrives :grin: ) , Version 11.0.5.1775
Thanks!