Fix the RE-SQL generation for GreenPlum external tables. Fixes #3431

pull/14/head
Joao Pedro De Almeida Pereira 2018-06-19 20:01:45 -04:00 committed by Dave Page
parent 7a06acb678
commit 155f82676d
2 changed files with 3 additions and 2 deletions

View File

@ -40,4 +40,5 @@ Bug fixes
| `Bug #3356 <https://redmine.postgresql.org/issues/3356>`_ - Include the schema name on RE-SQL for packages
| `Bug #3374 <https://redmine.postgresql.org/issues/3374>`_ - Fix autocomplete
| `Bug #3392 <https://redmine.postgresql.org/issues/3392>`_ - Fix IPv6 support in the container build
| `Bug #3409 <https://redmine.postgresql.org/issues/3409>`_ - Avoid an exception on GreenPlum when retrieving RE-SQL on a table
| `Bug #3409 <https://redmine.postgresql.org/issues/3409>`_ - Avoid an exception on GreenPlum when retrieving RE-SQL on a table
| `Bug #3431 <https://redmine.postgresql.org/issues/3431>`_ - Fix the RE-SQL generation for GreenPlum external tables

View File

@ -48,7 +48,7 @@ OPTIONS (
)
{% endif %}
ENCODING '{{ table.pgEncodingToChar }}'
{% if table.rejectLimit and table.rejectLimit|length > 0 %}
{% if table.rejectLimit and table.rejectLimit > 0 %}
{% if table.errorTableName and table.errorTableName|length > 0 %}
LOG ERRORS {% endif %}SEGMENT REJECT LIMIT {{ table.rejectLimit }} {{ rejectionLimit }}
{% endif %}