Skip to content

Commit d144260

Browse files
committed
Fix lingering references to meta schema (#2).
1 parent 5f228f3 commit d144260

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphql.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ CREATE FUNCTION ns(tab regclass) RETURNS name AS $$
110110
$$ LANGUAGE sql STABLE STRICT;
111111

112112
CREATE FUNCTION pk(t regclass) RETURNS name[] AS $$
113-
SELECT cols FROM meta.pk WHERE meta.pk.tab = t;
113+
SELECT cols FROM graphql.pk WHERE graphql.pk.tab = t;
114114
$$ LANGUAGE sql STABLE STRICT;
115115

116116
CREATE FUNCTION cols(t regclass)
117117
RETURNS TABLE (num smallint, col name, typ regtype) AS $$
118-
SELECT num, col, typ FROM meta.cols WHERE meta.cols.tab = t;
118+
SELECT num, col, typ FROM graphql.cols WHERE graphql.cols.tab = t;
119119
$$ LANGUAGE sql STABLE STRICT;
120120

121121
CREATE FUNCTION fk(t regclass)
122122
RETURNS TABLE (cols name[], other regclass, refs name[]) AS $$
123-
SELECT cols, other, refs FROM meta.fk WHERE meta.fk.tab = t;
123+
SELECT cols, other, refs FROM graphql.fk WHERE graphql.fk.tab = t;
124124
$$ LANGUAGE sql STABLE STRICT;
125125

126126

0 commit comments

Comments
 (0)