Page 1 of 1

Auto format VIEW declarations

PostPosted: Thu Feb 07, 2013 4:23 pm
by grexe
In the View declarations view, SQL is shown in one long line, it would be more readable if the SQL Auto-Formatter would be used here.

Re: Auto format VIEW declarations

PostPosted: Tue Feb 12, 2013 2:22 pm
by Serge
We already do it for MySQL. In Oracle views are stored well-formatted.
Actually some databases keep original views formatting so it's not a good idea to format them automatically (removing all manual formatting made by view author).
So it is not so obvious how to deal with it. Maybe we should format view source only if it contains a single long line or something like this..