Print Thread
PL/SQL Beautifier - Subquery factoring clause(WITH AS)
#29789 04/21/08 11:15 AM
Joined: Apr 2008
Posts: 1
W
Member
OP Offline
Member
W
Joined: Apr 2008
Posts: 1
The PL/SQL Beautifier does not understand the subquery factoring clause.

Can this be added to the feature request list?

Re: PL/SQL Beautifier - Subquery factoring clause(WITH AS)
#29790 04/21/08 02:25 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
I have added this to the list of enhancement requests.


Marco Kalter
Allround Automations
Re: PL/SQL Beautifier - Subquery factoring clause(WITH AS)
#29791 05/01/08 08:26 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 ...
Please, please, please! The Beautifier hasn't been upgraded for quite some time. For me, this is the biggest pain-point using PL/SQL Developer. Having code well-formatted enormously enhances the ability to review the structure and understand what's going on. Pain points are...
* WITH clause;
* CASE statements... generally do them better, especially nested CASE statements;
* nested AND/OR's in the WHERE clause.

Re: PL/SQL Beautifier - Subquery factoring clause(WITH AS)
#29792 05/02/08 03:34 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
These things (and more) will all be addressed in 8.0.


Marco Kalter
Allround Automations
Re: PL/SQL Beautifier - Subquery factoring clause(WITH AS)
Marco Kalter #32805 11/19/08 10:09 PM
Joined: Nov 2008
Posts: 1
C
Member
Offline
Member
C
Joined: Nov 2008
Posts: 1
Rather fundamental functionality to be pushed to a major release. Either you can beautify the code or you can't. This is not new Oracle functionality (meaning the WITH clause).

Last edited by cpetty1963; 11/19/08 10:12 PM.
Re: PL/SQL Beautifier - Subquery factoring clause(WITH AS)
cpetty1963 #33688 03/26/09 06:23 PM
Joined: Mar 2009
Posts: 32
M
Member
Offline
Member
M
Joined: Mar 2009
Posts: 32
How about analytic functions with partition by clause?

I would love the possibility of choosing between this
Code
SELECT ROW_NUMBER() OVER (PARTITION BY field1, field2, field3
                              ORDER BY field1, field2)
  FROM DUAL;
and this
Code
SELECT ROW_NUMBER() OVER (PARTITION BY field1,
                                       field2,
                                       field3
                              ORDER BY field1,
                                       field2)
  FROM DUAL;

Cheers

Last edited by mamv; 03/26/09 06:28 PM.
Re: PL/SQL Beautifier - Subquery factoring clause(WITH AS)
mamv #33694 03/27/09 06:26 PM
Joined: Mar 2009
Posts: 2
I
Member
Offline
Member
I
Joined: Mar 2009
Posts: 2
Is there any way to avoid a long line containing multiple concatenations like this:

htp.p('
var x = "<OBJECT attribute1='''||val1||''' attribute1='''||val1||''' attribute1='''||val1||''' attribute1='''||val1||''' />";
');

to not be splitted into many lines like this:

htp.p('
var x = "<OBJECT attribute1='''||val1||
''' attribute1='''||val1||
''' attribute1='''||val1||
''' attribute1='''||val1||''' />";
');

after formating the code using beautifier? Which option should I supress to preserve one single line?

Thanks!

Re: PL/SQL Beautifier - Subquery factoring clause(WITH AS)
idumitru #33706 03/30/09 09:52 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Only the right margin affects this. There is no explicit control over such a concatenation expression.


Marco Kalter
Allround Automations

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.030s Queries: 14 (0.010s) Memory: 2.5277 MB (Peak: 3.0427 MB) Data Comp: Off Server Time: 2024-05-18 19:40:46 UTC
Valid HTML 5 and Valid CSS