Skip to content

Commit 9897f80

Browse files
samrosestaaldraad
authored andcommitted
fix: update files used for schema tests
1 parent 452e8e3 commit 9897f80

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
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
SET default_tablespace = '';
503500

migrations/schema-17.sql

Lines changed: 2 additions & 3 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;

migrations/schema-orioledb-17.sql

Lines changed: 2 additions & 3 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;

0 commit comments

Comments
 (0)