mirror of https://github.com/django/django.git
Refs #18468 -- Used obj_description() with a catalog name on PostgreSQL.
obj_description(object oid) without a catalog name is deprecated since there is no guarantee that OIDs are unique across different system catalogs. Thanks Tim Graham for the report.
This commit is contained in:
parent
32940d390a
commit
648005dee6
|
@ -64,7 +64,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
|||
WHEN c.relkind IN ('m', 'v') THEN 'v'
|
||||
ELSE 't'
|
||||
END,
|
||||
obj_description(c.oid)
|
||||
obj_description(c.oid, 'pg_class')
|
||||
FROM pg_catalog.pg_class c
|
||||
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
|
||||
WHERE c.relkind IN ('f', 'm', 'p', 'r', 'v')
|
||||
|
|
Loading…
Reference in New Issue