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

@@ -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}}