Fixed the issue of editing triggers for advanced servers. Fixes #6802

This commit is contained in:
Rahul Shirsat 2021-10-16 12:36:25 +05:30 committed by Akshay Joshi
parent 173cb60691
commit 1377244e52
4 changed files with 11 additions and 0 deletions

View File

@ -27,6 +27,7 @@ Bug fixes
| `Issue #6776 <https://redmine.postgresql.org/issues/6776>`_ - Changed the label 'Inherits Tables?' to 'Is inherited?' as it misleading in the properties panel.
| `Issue #6790 <https://redmine.postgresql.org/issues/6790>`_ - Fixed an issue where the user is unable to create an index with concurrently keyword.
| `Issue #6797 <https://redmine.postgresql.org/issues/6797>`_ - Remove an extra blank line at the start of the SQL for function, procedure, and trigger function.
| `Issue #6802 <https://redmine.postgresql.org/issues/6802>`_ - Fixed the issue of editing triggers for advanced servers.
| `Issue #6828 <https://redmine.postgresql.org/issues/6828>`_ - Fixed an issue where the tree is not scrolling to the object selected from the search result.
| `Issue #6876 <https://redmine.postgresql.org/issues/6876>`_ - Ensure that the Dashboard should get updated after connecting to the server.
| `Issue #6881 <https://redmine.postgresql.org/issues/6881>`_ - Fixed an issue where the browser tree doesn't show all contents on changing resolution.

View File

@ -185,6 +185,12 @@ def get_sql(conn, **kwargs):
old_data = trigger_definition(old_data)
if 'lanname' in old_data and old_data['lanname'] == 'edbspl':
data['lanname'] = old_data['lanname']
if ('tfunction' in old_data and
old_data['tfunction'] == 'Inline EDB-SPL'):
data['tfunction'] = old_data['tfunction']
sql = render_template(
"/".join([template_path, 'update.sql']),
data=data, o_data=old_data, conn=conn

View File

@ -80,6 +80,8 @@ $color-editor-bracket: #d6aaaa;
$color-editor-operator: #d6aaaa;
$color-editor-foldmarker: #0000FF !default;
$color-editor-activeline: #323e43 !default;
$color-editor-activeline-light: $color-editor-activeline;
$color-editor-activeline-border-color: none;
$explain-sev-2-bg: #ded17e;
$explain-sev-3-bg: #824d18;

View File

@ -97,6 +97,8 @@ $color-editor-bracket: #D6AAAA;
$color-editor-operator: $color-fg;
$color-editor-foldmarker: #FFFFFF;
$color-editor-activeline: #063057;
$color-editor-activeline-light: $color-editor-activeline;
$color-editor-activeline-border-color: none;
$active-color: $color-fg;
$active-border: 3px solid $color-primary;