File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ LEFT JOIN LATERAL
113
113
LEFT JOIN pg_catalog .pg_type base_type
114
114
ON " type" .typtype = ' d' AND base_type .oid = " type" .typbasetype
115
115
LEFT JOIN pg_catalog .pg_type array_type
116
- ON array_type . typarray = " type" .oid
116
+ ON " type " .typelem = array_type . oid AND " type" .typcategory = ' A '
117
117
WHERE " column" .attrelid = " table" .oid
118
118
-- columns where attnum <= 0 are special, system-defined columns
119
119
AND " column" .attnum > 0
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ FROM "tabletable" "table"
41
41
-- $1 parameter provides JSON array of tracked tables
42
42
-- FROM
43
43
-- ( SELECT "tracked"."name" AS "table_name",
44
- -- "tracked"."schema" AS "table_schema"
44
+ -- "tracked"."schema" AS "table_schema"cockroach
45
45
-- FROM jsonb_to_recordset($1::jsonb) AS "tracked"("schema" text, "name" text)
46
46
-- ) "tracked_table"
47
47
@@ -86,7 +86,7 @@ LEFT JOIN LATERAL
86
86
LEFT JOIN pg_catalog .pg_type base_type
87
87
ON " type" .typtype = ' d' AND base_type .oid = " type" .typbasetype
88
88
LEFT JOIN pg_catalog .pg_type array_type
89
- ON array_type . typarray = " type" .oid
89
+ ON " type " .typelem = array_type . oid AND " type" .typcategory = ' A '
90
90
WHERE " column" .attrelid = " table" .oid
91
91
-- columns where attnum <= 0 are special, system-defined columns
92
92
AND " column" .attnum > 0
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ LEFT JOIN LATERAL
106
106
LEFT JOIN pg_catalog .pg_type base_type
107
107
ON " type" .typtype = ' d' AND base_type .oid = " type" .typbasetype
108
108
LEFT JOIN pg_catalog .pg_type array_type
109
- ON array_type . typarray = " type" .oid
109
+ ON " type " .typelem = array_type . oid AND " type" .typcategory = ' A '
110
110
WHERE " column" .attrelid = " table" .oid
111
111
-- columns where attnum <= 0 are special, system-defined columns
112
112
AND " column" .attnum > 0
You can’t perform that action at this time.
0 commit comments