Skip to content

Commit 008e289

Browse files
jonthan kabuyajonthan kabuya
authored andcommitted
fix: format pg_namespace JOIN statements in prod.sql
- Split JOIN conditions onto separate lines for better readability - Fixes SQL linter errors on lines 7412 and 7431 - Improves code formatting consistency
1 parent 239b5ac commit 008e289

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

supabase/schemas/prod.sql

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7409,7 +7409,9 @@ CREATE OR REPLACE FUNCTION "tests"."rls_enabled"("testing_schema" "text") RETURN
74097409
(select
74107410
count(pc.relname)::integer
74117411
from pg_class pc
7412-
join pg_namespace pn on pn.oid = pc.relnamespace and pn.nspname = rls_enabled.testing_schema
7412+
join pg_namespace pn
7413+
on pn.oid = pc.relnamespace
7414+
and pn.nspname = rls_enabled.testing_schema
74137415
join pg_type pt on pt.oid = pc.reltype
74147416
where relrowsecurity = FALSE)
74157417
,
@@ -7428,7 +7430,10 @@ CREATE OR REPLACE FUNCTION "tests"."rls_enabled"("testing_schema" "text", "testi
74287430
(select
74297431
count(*)::integer
74307432
from pg_class pc
7431-
join pg_namespace pn on pn.oid = pc.relnamespace and pn.nspname = rls_enabled.testing_schema and pc.relname = rls_enabled.testing_table
7433+
join pg_namespace pn
7434+
on pn.oid = pc.relnamespace
7435+
and pn.nspname = rls_enabled.testing_schema
7436+
and pc.relname = rls_enabled.testing_table
74327437
join pg_type pt on pt.oid = pc.reltype
74337438
where relrowsecurity = TRUE),
74347439
1,

0 commit comments

Comments
 (0)