Remove additional "SETOF" included when generating CREATE scripts for trigger functions. Fixes #4362

This commit is contained in:
Dave Page 2019-06-20 13:18:30 +01:00
parent fb4afce629
commit 81752bb998
8 changed files with 15 additions and 7 deletions

View File

@ -36,5 +36,6 @@ Bug fixes
| `Bug #4350 <https://redmine.postgresql.org/issues/4350>`_ - Ensure we include the CSRF token when uploading files. | `Bug #4350 <https://redmine.postgresql.org/issues/4350>`_ - Ensure we include the CSRF token when uploading files.
| `Bug #4357 <https://redmine.postgresql.org/issues/4357>`_ - Fix connection restoration issue when pgAdmin server is restarted and the page is refreshed. | `Bug #4357 <https://redmine.postgresql.org/issues/4357>`_ - Fix connection restoration issue when pgAdmin server is restarted and the page is refreshed.
| `Bug #4360 <https://redmine.postgresql.org/issues/4360>`_ - Ensure the debugger control buttons are only enabled once initialisation is complete. | `Bug #4360 <https://redmine.postgresql.org/issues/4360>`_ - Ensure the debugger control buttons are only enabled once initialisation is complete.
| `Bug #4362 <https://redmine.postgresql.org/issues/4362>`_ - Remove additional "SETOF" included when generating CREATE scripts for trigger functions.
| `Bug #4365 <https://redmine.postgresql.org/issues/4365>`_ - Fix help links for backup globals and backup server. | `Bug #4365 <https://redmine.postgresql.org/issues/4365>`_ - Fix help links for backup globals and backup server.
| `Bug #4367 <https://redmine.postgresql.org/issues/4367>`_ - Fix an XSS issue seen in View/Edit data mode if a column name includes HTML. | `Bug #4367 <https://redmine.postgresql.org/issues/4367>`_ - Fix an XSS issue seen in View/Edit data mode if a column name includes HTML.

View File

@ -4,7 +4,8 @@
{% set is_columns = [] %} {% set is_columns = [] %}
{% if data %} {% if data %}
CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}({% if data.proargnames %}{{data.proargnames}}{% endif %}) CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}({% if data.proargnames %}{{data.proargnames}}{% endif %})
RETURNS{% if data.proretset %} SETOF{% endif %} {{ conn|qtTypeIdent(data.prorettypename) }} RETURNS{% if data.proretset and data.prorettypename.startswith('SETOF ') %} {{ data.prorettypename }} {% elif data.proretset %} SETOF {{ data.prorettypename }}{% else %} {{ data.prorettypename }}{% endif %}
LANGUAGE {{ data.lanname|qtLiteral }} LANGUAGE {{ data.lanname|qtLiteral }}
{% if data.procost %} {% if data.procost %}
COST {{data.procost}} COST {{data.procost}}

View File

@ -4,7 +4,8 @@
{% set is_columns = [] %} {% set is_columns = [] %}
{% if data %} {% if data %}
CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}() CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}()
RETURNS{% if data.proretset %} SETOF{% endif %} {{ conn|qtTypeIdent(data.prorettypename) }} RETURNS{% if data.proretset and data.prorettypename.startswith('SETOF ') %} {{ data.prorettypename }} {% elif data.proretset %} SETOF {{ data.prorettypename }}{% else %} {{ data.prorettypename }}{% endif %}
LANGUAGE {{ data.lanname|qtLiteral }} LANGUAGE {{ data.lanname|qtLiteral }}
{% if data.procost %} {% if data.procost %}
COST {{data.procost}} COST {{data.procost}}

View File

@ -4,7 +4,8 @@
{% set is_columns = [] %} {% set is_columns = [] %}
{% if data %} {% if data %}
CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}({% if data.proargnames %}{{data.proargnames}}{% endif %}) CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}({% if data.proargnames %}{{data.proargnames}}{% endif %})
RETURNS{% if data.proretset %} SETOF{% endif %} {{ conn|qtTypeIdent(data.prorettypename) }} RETURNS{% if data.proretset and data.prorettypename.startswith('SETOF ') %} {{ data.prorettypename }} {% elif data.proretset %} SETOF {{ data.prorettypename }}{% else %} {{ data.prorettypename }}{% endif %}
LANGUAGE {{ data.lanname|qtLiteral }} LANGUAGE {{ data.lanname|qtLiteral }}
{% if data.procost %} {% if data.procost %}
COST {{data.procost}} COST {{data.procost}}

View File

@ -4,7 +4,8 @@
{% set is_columns = [] %} {% set is_columns = [] %}
{% if data %} {% if data %}
CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}() CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}()
RETURNS{% if data.proretset %} SETOF{% endif %} {{ conn|qtTypeIdent(data.prorettypename) }} RETURNS{% if data.proretset and data.prorettypename.startswith('SETOF ') %} {{ data.prorettypename }} {% elif data.proretset %} SETOF {{ data.prorettypename }}{% else %} {{ data.prorettypename }}{% endif %}
LANGUAGE {{ data.lanname|qtLiteral }} LANGUAGE {{ data.lanname|qtLiteral }}
{% if data.procost %} {% if data.procost %}
COST {{data.procost}} COST {{data.procost}}

View File

@ -4,7 +4,8 @@
{% set is_columns = [] %} {% set is_columns = [] %}
{% if data %} {% if data %}
CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}() CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}()
RETURNS{% if data.proretset %} SETOF{% endif %} {{ conn|qtTypeIdent(data.prorettypename) }} RETURNS{% if data.proretset and data.prorettypename.startswith('SETOF ') %} {{ data.prorettypename }} {% elif data.proretset %} SETOF {{ data.prorettypename }}{% else %} {{ data.prorettypename }}{% endif %}
LANGUAGE {{ data.lanname|qtLiteral }} LANGUAGE {{ data.lanname|qtLiteral }}
{% if data.procost %} {% if data.procost %}
COST {{data.procost}} COST {{data.procost}}

View File

@ -4,7 +4,8 @@
{% set is_columns = [] %} {% set is_columns = [] %}
{% if data %} {% if data %}
CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}() CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}()
RETURNS{% if data.proretset %} SETOF{% endif %} {{ conn|qtTypeIdent(data.prorettypename) }} RETURNS{% if data.proretset and data.prorettypename.startswith('SETOF ') %} {{ data.prorettypename }} {% elif data.proretset %} SETOF {{ data.prorettypename }}{% else %} {{ data.prorettypename }}{% endif %}
LANGUAGE {{ data.lanname|qtLiteral }} LANGUAGE {{ data.lanname|qtLiteral }}
{% if data.procost %} {% if data.procost %}
COST {{data.procost}} COST {{data.procost}}

View File

@ -4,7 +4,8 @@
{% set is_columns = [] %} {% set is_columns = [] %}
{% if data %} {% if data %}
CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}() CREATE FUNCTION {{ conn|qtIdent(data.pronamespace, data.name) }}()
RETURNS{% if data.proretset %} SETOF{% endif %} {{ conn|qtTypeIdent(data.prorettypename) }} RETURNS{% if data.proretset and data.prorettypename.startswith('SETOF ') %} {{ data.prorettypename }} {% elif data.proretset %} SETOF {{ data.prorettypename }}{% else %} {{ data.prorettypename }}{% endif %}
LANGUAGE {{ data.lanname|qtLiteral }} LANGUAGE {{ data.lanname|qtLiteral }}
{% if data.procost %} {% if data.procost %}
COST {{data.procost}} COST {{data.procost}}