Skip to content

Commit ed261b7

Browse files
committed
fix: update files used for schema tests
1 parent 34414a8 commit ed261b7

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

migrations/schema-15.sql

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,8 @@ COMMENT ON FUNCTION extensions.set_graphql_placeholder() IS 'Reintroduces placeh
477477
--
478478

479479
CREATE FUNCTION pgbouncer.get_auth(p_usename text) RETURNS TABLE(username text, password text)
480-
LANGUAGE plpgsql
481-
SET search_path = ''
482-
SECURITY DEFINER
480+
LANGUAGE plpgsql SECURITY DEFINER
481+
SET search_path TO ''
483482
AS $_$
484483
begin
485484
raise debug 'PgBouncer auth request: %', p_usename;
@@ -496,8 +495,6 @@ begin
496495
end;
497496
$_$;
498497

499-
REVOKE ALL ON FUNCTION pgbouncer.get_auth(p_usename TEXT) FROM PUBLIC;
500-
GRANT EXECUTE ON FUNCTION pgbouncer.get_auth(p_usename TEXT) TO pgbouncer;
501498

502499
--
503500
-- Name: extension(text); Type: FUNCTION; Schema: storage; Owner: -

migrations/schema-17.sql

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,8 @@ COMMENT ON FUNCTION extensions.set_graphql_placeholder() IS 'Reintroduces placeh
478478
--
479479

480480
CREATE FUNCTION pgbouncer.get_auth(p_usename text) RETURNS TABLE(username text, password text)
481-
LANGUAGE plpgsql
482-
SET search_path = ''
483-
SECURITY DEFINER
481+
LANGUAGE plpgsql SECURITY DEFINER
482+
SET search_path TO ''
484483
AS $_$
485484
begin
486485
raise debug 'PgBouncer auth request: %', p_usename;
@@ -497,8 +496,7 @@ begin
497496
end;
498497
$_$;
499498

500-
REVOKE ALL ON FUNCTION pgbouncer.get_auth(p_usename TEXT) FROM PUBLIC;
501-
GRANT EXECUTE ON FUNCTION pgbouncer.get_auth(p_usename TEXT) TO pgbouncer;
499+
502500
--
503501
-- Name: extension(text); Type: FUNCTION; Schema: storage; Owner: -
504502
--

migrations/schema-orioledb-17.sql

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,8 @@ COMMENT ON FUNCTION extensions.set_graphql_placeholder() IS 'Reintroduces placeh
492492
--
493493

494494
CREATE FUNCTION pgbouncer.get_auth(p_usename text) RETURNS TABLE(username text, password text)
495-
LANGUAGE plpgsql
496-
SET search_path = ''
497-
SECURITY DEFINER
495+
LANGUAGE plpgsql SECURITY DEFINER
496+
SET search_path TO ''
498497
AS $_$
499498
begin
500499
raise debug 'PgBouncer auth request: %', p_usename;
@@ -511,8 +510,7 @@ begin
511510
end;
512511
$_$;
513512

514-
REVOKE ALL ON FUNCTION pgbouncer.get_auth(p_usename TEXT) FROM PUBLIC;
515-
GRANT EXECUTE ON FUNCTION pgbouncer.get_auth(p_usename TEXT) TO pgbouncer;
513+
516514
--
517515
-- Name: extension(text); Type: FUNCTION; Schema: storage; Owner: -
518516
--

0 commit comments

Comments
 (0)