sql-formatter icon indicating copy to clipboard operation
sql-formatter copied to clipboard

[FORMATTING] PLSQL incorrect format of "for update" syntax

Open AndyGeng123 opened this issue 2 years ago • 1 comments

Oracle sql text:

 select *  from andy.t_test for update;

Expect output:

 select *  
   from andy.t_test for update;

output in demo website:

   select *
     from andy.t_test for
   update;

AndyGeng123 avatar Jul 23 '22 03:07 AndyGeng123

Thanks for the bug report.

Unfortunately this is currently pretty hard to fix. Problems like this are the reason why we're looking into doing some major architectural changes in the formatter.

nene avatar Jul 26 '22 07:07 nene

Found a simpler way of fixing this. Released in 10.2.0.

nene avatar Sep 01 '22 11:09 nene