Print Thread
Beautifer enhancement
#26929 06/19/07 09:47 PM
Joined: Jun 2007
Posts: 10
France
P
PhilG Offline OP
Member
OP Offline
Member
P
Joined: Jun 2007
Posts: 10
France
The beautifier is agood tool, but sometimes it doesn't really help, for very long sql instruction it cuts the line at sometime stranges place.

My sugestion is to have some hints :
/*NO BEAUTY*/
code I don't want to beautify
...
/*END NO BEAUTY*/
so that we can keep it as we want and continue to use this great tool on the rest of code
Is there some possibility to prevent it to add a LF just after the "." in a statemment like "record.item" making the statement difficult to read.

Thanks


PhilG
Re: Beautifer enhancement
#26930 06/19/07 10:07 PM
Joined: Aug 1999
Posts: 22,224
Member
Offline
Member
Joined: Aug 1999
Posts: 22,224
The "don't beautify" directive is on the list of enhancement requests. The record.item bug is on the to-do list.


Marco Kalter
Allround Automations
Re: Beautifer enhancement
#26931 04/01/08 05:33 PM
Joined: Apr 2006
Posts: 77
F
Member
Offline
Member
F
Joined: Apr 2006
Posts: 77
[quote]Originally posted by Marco Kalter:
The "don't beautify" directive is on the list of enhancement requests. The record.item bug is on the to-do list. [/quote]Is the long awaited "don't beautify" feature implemented yet? I did not find any hints in any of the release notes published after your response to this topic...

Frank

Re: Beautifer enhancement
#26932 04/02/08 03:24 PM
Joined: Aug 1999
Posts: 22,224
Member
Offline
Member
Joined: Aug 1999
Posts: 22,224
This is planned for 8.0.


Marco Kalter
Allround Automations
Re: Beautifer enhancement
#26933 04/04/08 11:31 PM
Joined: Nov 2001
Posts: 29
Columbia Univ in New York, NY ...
Member
Offline
Member
Joined: Nov 2001
Posts: 29
Columbia Univ in New York, NY ...
Marco... Are you planning other Beautifier enhancements for 8.0 also? E.g...

* WITH clause can't be beautified at all;

* CASE is handled miserably; sometimes not at all.

Re: Beautifer enhancement
#26934 04/05/08 03:34 AM
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
G
Member
Offline
Member
G
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
* BULK clause can't be beautified at all.

The trigger declaration is not beautified (everything before DECLARE).


There are 10 types of people: those who know binary and those who don't.
Re: Beautifer enhancement
#26935 04/05/08 03:41 AM
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
G
Member
Offline
Member
G
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
Also, we could have a special handler for decode. Beautifier can't do this:
Code
Select decode(expr,
              pattern1,  result1,
              pattern2,  result2,
              .
              .
              .
              pattern10, result10,
              else_result)
From   dual; 
Note resultXX are also aligned.


There are 10 types of people: those who know binary and those who don't.
Re: Beautifer enhancement
#26936 04/08/08 09:24 PM
Joined: Mar 2007
Posts: 131
California, USA
Member
Offline
Member
Joined: Mar 2007
Posts: 131
California, USA
I dont think the beautifier can handle this:

SELECT --abb
col1
FROM tab1;

If you remove the "--abb", then it formats it properly.


~Sachin.
Re: Beautifer enhancement
#26937 04/11/08 02:22 PM
Joined: Jun 2003
Posts: 52
Lenzburg, Switzerland
T
til Offline
Member
Offline
Member
T
Joined: Jun 2003
Posts: 52
Lenzburg, Switzerland
@sachin:
That is a misplaced comment in my view. What would you expect the beautifier to do in this case?


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.074s Queries: 13 (0.021s) Memory: 2.5344 MB (Peak: 3.0427 MB) Data Comp: Off Server Time: 2024-05-25 07:59:44 UTC
Valid HTML 5 and Valid CSS