mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
console (hotfix): add missing introspection SQL to get is_identity status for a column
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10379 GitOrigin-RevId: 782625e5770e12879f0754840a81ebb166f8537d
This commit is contained in:
parent
e3bbf8e113
commit
359fc54a2a
@ -102,7 +102,12 @@ export const getFetchTablesListQuery = (options: {
|
||||
WHEN nt.nspname = 'pg_catalog' THEN format_type(a.atttypid, null)
|
||||
ELSE 'USER-DEFINED' END
|
||||
END AS data_type,
|
||||
coalesce(bt.typname, t.typname) AS data_type_name
|
||||
coalesce(bt.typname, t.typname) AS data_type_name,
|
||||
CASE
|
||||
WHEN a.attidentity = 'd' THEN TRUE
|
||||
WHEN a.attidentity = 'a' THEN TRUE
|
||||
ELSE FALSE
|
||||
END as is_identity
|
||||
FROM (pg_attribute a LEFT JOIN pg_attrdef ad ON attrelid = adrelid AND attnum = adnum)
|
||||
JOIN (pg_class c JOIN pg_namespace nc ON (c.relnamespace = nc.oid)) ON a.attrelid = c.oid
|
||||
JOIN (pg_type t JOIN pg_namespace nt ON (t.typnamespace = nt.oid)) ON a.atttypid = t.oid
|
||||
|
Loading…
Reference in New Issue
Block a user