RE: Extra brackets when viewing SQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I agree! That is a pain.

 

From: Joe Tailleur <joe.tailleur@xxxxxxxxx>
Sent: Thursday, December 10, 2020 8:49 AM
To: Pgsql-admin <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>
Subject: Extra brackets when viewing SQL

 

Hi all,

 

In version 4.27 when I viewed my SQL (sql tab when highlighting an item).

 

For example: 

CREATE OR REPLACE VIEW asap.view_assignment
 AS
 SELECT pa.assign_id,
    pa.proj_id,
    pa.date_assigned,
    pa.time_assigned,
    au.user_name AS assigned_to,
    pa.assigned_level,
    pa.note,
    eb.user_name AS assigned_by
   FROM proj_assign pa
     JOIN asap_users au ON au.user_uid = pa.assigned_to_user
     LEFT JOIN asap_users eb ON eb.user_uid = pa.assigned_by_user;

 

In version 4.28 (and 4.29)

CREATE OR REPLACE VIEW asap.view_assignment
 AS
 SELECT pa.assign_id,
    pa.proj_id,
    pa.date_assigned,
    pa.time_assigned,
    au.user_name AS assigned_to,
    pa.assigned_level,
    pa.note,
    eb.user_name AS assigned_by
   FROM ((proj_assign pa
     JOIN asap_users au ON ((au.user_uid = pa.assigned_to_user)))
     LEFT JOIN asap_users eb ON ((eb.user_uid = pa.assigned_by_user)));

I really don't like the extra brackets that are being placed around the FROM and JOINs, and they show up as well in CASE statements within SELECT and other sections as well.  Can I somehow disable this?  It's a real pain in the butt.

 

Joe.

 

 


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux