Print Thread
Page 1 of 2 1 2
Βeautifier and views
#61589 05/08/20 01:17 PM
Joined: Jan 2013
Posts: 52
Greece
A
Arky Offline OP
Member
OP Offline
Member
A
Joined: Jan 2013
Posts: 52
Greece
Hi all,

Is there a reason for Beautifier not working in views? It is pretty frustrating... Does anyone have a workaround on this?

Thanks!

Re: Βeautifier and views
Arky #61590 05/08/20 01:35 PM
Joined: Mar 2012
Posts: 38
Switzerland
Member
Offline
Member
Joined: Mar 2012
Posts: 38
Switzerland
I agree with you, personally, I beautify the underlying query manually by selecting it and Ctrl-B.
But I would appreciate to beautify a file with views without this trick.

Re: Βeautifier and views
Arky #61591 05/08/20 01:39 PM
Joined: Aug 1999
Posts: 22,218
Member
Offline
Member
Joined: Aug 1999
Posts: 22,218
It should work. What exactly goes wrong?


Marco Kalter
Allround Automations
Re: Βeautifier and views
Marco Kalter #61592 05/08/20 01:42 PM
Joined: Mar 2012
Posts: 38
Switzerland
Member
Offline
Member
Joined: Mar 2012
Posts: 38
Switzerland
Our views are in a file, which is opened in an SQL window (or a command window), and thus Beautifier has no effect.
We can't edit views in a program window.

Re: Βeautifier and views
Philippe Malera #61593 05/08/20 02:11 PM
Joined: Jan 2013
Posts: 52
Greece
A
Arky Offline OP
Member
OP Offline
Member
A
Joined: Jan 2013
Posts: 52
Greece
[quote=Philippe Malera]I agree with you, personally, I beautify the underlying query manually by selecting it and Ctrl-B.
But I would appreciate to beautify a file with views without this trick.[/quote]

@Philippe, this is also my "work around"
@Marco, this view cannot be formatted:

CREATE OR REPLACE VIEW test123
AS
SELECT 1 AS c1,
b AS c2
FROM dual

Check view

Last edited by Arky; 05/08/20 02:13 PM.
Re: Βeautifier and views
Arky #61595 05/08/20 08:02 PM
Joined: Feb 2016
Posts: 80
Ontario, Canada
Member
Offline
Member
Joined: Feb 2016
Posts: 80
Ontario, Canada
Arky,

it work on version 13 and 14. I do remember it was an issue before.
Are you using an older version? You did not specify which version you use.

Re: Βeautifier and views
Arky #61597 05/09/20 08:55 AM
Joined: Aug 1999
Posts: 22,218
Member
Offline
Member
Joined: Aug 1999
Posts: 22,218
[quote=Arky]@Marco, this view cannot be formatted:

CREATE OR REPLACE VIEW test123
AS
SELECT 1 AS c1,
b AS c2
FROM dual [/quote]
This works fine for me. Can you let me know your PL/SQL Developer version?


Marco Kalter
Allround Automations
Re: Βeautifier and views
Marco Kalter #61600 05/09/20 03:16 PM
Joined: Jan 2013
Posts: 52
Greece
A
Arky Offline OP
Member
OP Offline
Member
A
Joined: Jan 2013
Posts: 52
Greece
Marco, I'm using the latest 14 32-bit version.
I downloaded also 64-bit just in case but the problem is the same

Re: Βeautifier and views
Arky #61601 05/11/20 08:48 AM
Joined: Aug 1999
Posts: 22,218
Member
Offline
Member
Joined: Aug 1999
Posts: 22,218
Are you using the SQL Window or some other window type? Are there more statements in the script than just the create view statement?


Marco Kalter
Allround Automations
Re: Βeautifier and views
Marco Kalter #61602 05/11/20 10:10 AM
Joined: Jan 2013
Posts: 52
Greece
A
Arky Offline OP
Member
OP Offline
Member
A
Joined: Jan 2013
Posts: 52
Greece
No, this is written in a new, plain SQL Window, with no other statements

UPDATE:
OK, this is good. I talked to all 4 developers of our team: Two of us have the same problem while the others don't.

Verdict: Format is NOT working if you select all code - Ctrl+A and press button. It works flawlessly if you DO NOT select any code but simply press the button.

Thanks a lot, problem solved!!



Last edited by Arky; 05/11/20 12:39 PM.
Page 1 of 2 1 2

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.039s Queries: 15 (0.010s) Memory: 2.5586 MB (Peak: 3.0394 MB) Data Comp: Off Server Time: 2024-05-15 05:04:40 UTC
Valid HTML 5 and Valid CSS