This PR modifies extract_aliases() to ignore the names of views that only appear in a CREATE VIEW statement.
These semantics were part of the old extract_aliases() function back when we were using pglast 3.8.
When we migrated to pglast 6.2, we fixed all errors from the version change except for the one in this PR.
Thus, this PR completes the migration.
Fix #8.
Summary: extract_aliases() now ignores the names of views if they only appear in a CREATE VIEW statement and do not appear anywhere else in the query.
Demo:
Added two unit tests to verify this behavior.
Details:
These semantics were a part of the old extract_aliases() function back when we were using pglast==3.8. When we migrated to pglast==6.2 earlier, we fixed all errors from the version change except the one in this PR. Thus, this PR completes the migration.
This PR modifies extract_aliases() to ignore the names of views that only appear in a CREATE VIEW statement.
These semantics were part of the old extract_aliases() function back when we were using pglast 3.8. When we migrated to pglast 6.2, we fixed all errors from the version change except for the one in this PR. Thus, this PR completes the migration. Fix #8.
Summary: extract_aliases() now ignores the names of views if they only appear in a CREATE VIEW statement and do not appear anywhere else in the query.
Demo: Added two unit tests to verify this behavior.
Details: