UNIONs and SQL beautifier

stevec

Member²
Is there anyway to control the formatting applied to UNION SQL's by the beautifier ?
- it generates ...
Code:
SELECT codevalue,
       codetext
FROM   uni7live.cncode
WHERE  cncode.listname = 'EHAREATM'
UNION
  SELECT '*',
         '(All)'
  FROM   uni7live.cncode
  UNION
    SELECT '^' AS codevalue,
           '(Not Set)' AS codetext
    FROM   uni7live.cncode
    ORDER  BY 2;

whereas I'd prefer ...
Code:
SELECT codevalue,
       codetext
FROM   uni7live.cncode
WHERE  cncode.listname = 'EHAREATM'
UNION
SELECT '*',
       '(All)'
FROM   uni7live.cncode
UNION
SELECT '^' AS codevalue,
       '(Not Set)' AS codetext
FROM   uni7live.cncode
ORDER  BY 2;
 
The indented union layout was not intentional. We'll fix it.

------------------
Marco Kalter
Allround Automations
 
Back
Top