Fix sequence reverse engineered SQL generation with quoted names on PG/EPAS 10+. Fixes #4470

This commit is contained in:
Aditya Toshniwal 2019-07-15 14:55:07 +01:00 committed by Dave Page
parent f4453e33cc
commit 0b82a4ad92
2 changed files with 3 additions and 2 deletions

View File

@ -44,3 +44,4 @@ Bug fixes
| `Issue #4446 <https://redmine.postgresql.org/issues/4446>`_ - Use ROLE consistently when generating RE-SQL for roles, not USER.
| `Issue #4450 <https://redmine.postgresql.org/issues/4450>`_ - Fix reverse engineered sql for Foreign Data Wrapper created on EPAS server in redwood mode.
| `Issue #4462 <https://redmine.postgresql.org/issues/4462>`_ - Fix some minor UI issues on IE11.
| `Issue #4469 <https://redmine.postgresql.org/issues/4469>`_ - Fix sequence reverse engineered SQL generation with quoted names on PG/EPAS 10+.

View File

@ -8,4 +8,4 @@ SELECT
seqincrement AS increment_by,
is_called
FROM pg_sequence, {{ conn|qtIdent(data.schema) }}.{{ conn|qtIdent(data.name) }}
WHERE seqrelid = '{{ conn|qtIdent(data.schema) }}.{{ conn|qtIdent(data.name) }}'::regclass
WHERE seqrelid = {{data.oid}}