Ensure that grant wizard should list down functions for EPAS server running with no-redwood-compat mode. Fixes #3935

pull/20/head
Murtuza Zabuawala 2019-01-28 12:47:27 +05:30 committed by Akshay Joshi
parent 2d7eaa63c4
commit 07f16f40cd
3 changed files with 4 additions and 3 deletions

View File

@ -39,3 +39,4 @@ Bug fixes
| `Bug #3897 <https://redmine.postgresql.org/issues/3897>`_ - Data should be updated properly for FTS Configurations, FTS Dictionaries, FTS Parsers and FTS Templates. | `Bug #3897 <https://redmine.postgresql.org/issues/3897>`_ - Data should be updated properly for FTS Configurations, FTS Dictionaries, FTS Parsers and FTS Templates.
| `Bug #3908 <https://redmine.postgresql.org/issues/3908>`_ - Fixed keyboard navigation for Select2 and Privilege cell in Backgrid. | `Bug #3908 <https://redmine.postgresql.org/issues/3908>`_ - Fixed keyboard navigation for Select2 and Privilege cell in Backgrid.
| `Bug #3929 <https://redmine.postgresql.org/issues/3929>`_ - Fix alignment of help messages in properties panels. | `Bug #3929 <https://redmine.postgresql.org/issues/3929>`_ - Fix alignment of help messages in properties panels.
| `Bug #3935 <https://redmine.postgresql.org/issues/3935>`_ - Ensure that grant wizard should list down functions for EPAS server running with no-redwood-compat mode.

View File

@ -21,7 +21,7 @@ WHERE
pronamespace = {{ node_id }}::oid pronamespace = {{ node_id }}::oid
AND typname {{ 'NOT' if type != 'trigger_function' else '' }} IN ('trigger', 'event_trigger') AND typname {{ 'NOT' if type != 'trigger_function' else '' }} IN ('trigger', 'event_trigger')
AND pr.prokind = '{{ kind }}' AND pr.prokind = '{{ kind }}'
AND pr.protype = {{ 0 if type != 'procedure' else 1 }} AND pr.protype = {{'0' if type != 'procedure' else '1'}}::char
ORDER BY ORDER BY
proname proname
{% endif %} {% endif %}

View File

@ -19,7 +19,7 @@ LEFT OUTER JOIN pg_description des ON (des.objoid=pr.oid AND des.classoid='pg_pr
WHERE WHERE
proisagg = FALSE AND pronamespace = {{ node_id }}::oid proisagg = FALSE AND pronamespace = {{ node_id }}::oid
AND typname {{ 'NOT' if type != 'trigger_function' else '' }} IN ('trigger', 'event_trigger') AND typname {{ 'NOT' if type != 'trigger_function' else '' }} IN ('trigger', 'event_trigger')
AND pr.protype = {{ 0 if type != 'procedure' else 1 }} AND pr.protype = {{'0' if type != 'procedure' else '1'}}::char
ORDER BY ORDER BY
proname proname
{% endif %} {% endif %}