mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix SQL tab issue for Views. It's a regression of compound triggers. Fixes #4650
This commit is contained in:
parent
6192c48ef9
commit
232fe286ee
@ -22,4 +22,5 @@ Bug fixes
|
||||
| `Issue #2706 <https://redmine.postgresql.org/issues/2706>`_ - Added ProjectSet icon for explain module.
|
||||
| `Issue #2828 <https://redmine.postgresql.org/issues/2828>`_ - Added Gather Merge, Named Tuple Store Scan and Table Function Scan icon for explain module.
|
||||
| `Issue #4643 <https://redmine.postgresql.org/issues/4643>`_ - Fix Truncate option deselect issue for compound triggers.
|
||||
| `Issue #4644 <https://redmine.postgresql.org/issues/4644>`_ - Fix length and precision enable/disable issue when changing the data type for Domain node.
|
||||
| `Issue #4644 <https://redmine.postgresql.org/issues/4644>`_ - Fix length and precision enable/disable issue when changing the data type for Domain node.
|
||||
| `Issue #4650 <https://redmine.postgresql.org/issues/4650>`_ - Fix SQL tab issue for Views. It's a regression of compound triggers.
|
@ -879,6 +879,7 @@ class ViewNode(PGChildNodeView, VacuumSettings):
|
||||
Get all compound trigger nodes associated with view node,
|
||||
generate their sql and render into sql tab
|
||||
"""
|
||||
SQL_data = ''
|
||||
if self.manager.server_type == 'ppas' \
|
||||
and self.manager.version >= 120000:
|
||||
|
||||
@ -888,7 +889,6 @@ class ViewNode(PGChildNodeView, VacuumSettings):
|
||||
# Define template path
|
||||
self.ct_trigger_temp_path = 'compound_triggers'
|
||||
|
||||
SQL_data = ''
|
||||
SQL = render_template("/".join(
|
||||
[self.ct_trigger_temp_path,
|
||||
'sql/{0}/#{1}#/nodes.sql'.format(
|
||||
@ -949,7 +949,7 @@ class ViewNode(PGChildNodeView, VacuumSettings):
|
||||
SQL_data += '\n'
|
||||
SQL_data += SQL
|
||||
|
||||
return SQL_data
|
||||
return SQL_data
|
||||
|
||||
def get_trigger_sql(self, vid):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user