You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug is present since v5.12, when commit 511d2da introduced use of information_schema instead of pg_catalog to retrieve tables metadata.
Considering how long it's been out there without anyone complaining about it, and the pending refactor of PostgreSQL driver (#955), I'm targeting this at 5.23 instead of the hotfix branch as I normally would.
The information_schema's tables view already contains the views, so
there is no need for an UNION query. The object's type (table/view) is
stored in the table_type column.
The metaTablesSQL query was modified accordingly.
FixesADOdb#972
dregad
added a commit
to dregad/ADOdb
that referenced
this issue
Jun 12, 2023
The information_schema's tables view already contains the views, so
there is no need for an UNION query. The object's type (table/view) is
stored in the table_type column.
The metaTablesSQL query was modified accordingly.
FixesADOdb#972
The information_schema's tables view already contains the views, so
there is no need for an UNION query. The object's type (table/view) is
stored in the table_type column.
The metaTablesSQL query was modified accordingly.
FixesADOdb#972
Description
When executed with $ttype = false on PostgreSQL driver, database views are listed twice in the array returned by metaTables() method.
Environment
Steps to reproduce
A database containing at least one view (here, I have 2 tables test, test2 and a view v_test2)
Script output
Expected behavior
List all tables and views without duplicates
The text was updated successfully, but these errors were encountered: