mirror of
https://github.com/django/django.git
synced 2025-03-30 03:00:45 +00:00
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'
|
WHEN c.relkind IN ('m', 'v') THEN 'v'
|
||||||
ELSE 't'
|
ELSE 't'
|
||||||
END,
|
END,
|
||||||
obj_description(c.oid)
|
obj_description(c.oid, 'pg_class')
|
||||||
FROM pg_catalog.pg_class c
|
FROM pg_catalog.pg_class c
|
||||||
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
|
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
|
||||||
WHERE c.relkind IN ('f', 'm', 'p', 'r', 'v')
|
WHERE c.relkind IN ('f', 'm', 'p', 'r', 'v')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user