Print Thread
PL/SQL Beautifier
#33922 04/30/09 11:41 PM
Joined: Feb 2009
Posts: 23
U
Member
OP Offline
Member
U
Joined: Feb 2009
Posts: 23
When I try to use the PL/SQL Beautifier with CTEs it doesn't work, here is an example that gets the "PL/SQL Beautifier could not parse text":

WITH "TestCTE" AS (SELECT * FROM dba_jobs) SELECT * FROM "TestCTE";

But if I break the line at the first SELECT, and then select the text up to the last ) and choose to Beautify the code it works.

Example: (select just "SELECT * FROM dba_jobs")

WITH "TestCTE" AS (
SELECT * FROM dba_jobs) SELECT * FROM "TestCTE";

Any chance this will be fixed in 8.0? (I often have to take code generated by Cognos as one huge long line and Beautify it so I can read it to see what is going on, and it would be much easier if I didn't have to break the line, and then select a portion of it.)

Re: PL/SQL Beautifier
UMG Developer #33925 05/01/09 11:04 AM
Joined: Aug 1999
Posts: 22,226
Member
Offline
Member
Joined: Aug 1999
Posts: 22,226
This will be fixed in 8.0. The WITH statement is not recognized as a standalone statement.


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.029s Queries: 14 (0.008s) Memory: 2.4993 MB (Peak: 3.0420 MB) Data Comp: Off Server Time: 2024-05-31 14:03:35 UTC
Valid HTML 5 and Valid CSS