Skip to content

Commit

Permalink
bundle: search_path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
erichanson committed Dec 3, 2023
1 parent 343a7f0 commit b7f4f86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/bundle/001-functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ create or replace function commit (bundle_name text, message text) returns void
-- and foul up the search_path for everything else in the same transaction.
-- FIXME: We can remove this when we stop using information schema, or work around all the places that it does this.
saved_search_path := current_setting('search_path', true);
set search_path to '';
set search_path to 'nonexistent_schema';



Expand Down Expand Up @@ -696,7 +696,7 @@ create or replace function checkout_row (in row_id meta.row_id, in fields checko
saved_search_path text;
begin
saved_search_path := current_setting('search_path', true);
set search_path to '';
set search_path to 'nonexistent_schema';

-- raise log '------------ checkout_row % ----------',
-- (row_id).schema_name || '.' || (row_id).relation_name ;
Expand Down Expand Up @@ -832,7 +832,7 @@ create or replace function checkout (in commit_id uuid, in comment text default
saved_search_path text;
begin
saved_search_path := current_setting('search_path', true);
set search_path to '';
set search_path to 'nonexistent_schema';

-- propagate variables
select b.name, b.id, b.head_commit_id, b.checkout_commit_id, c.id, c.message, c.time, (c.role_id).name
Expand Down Expand Up @@ -1028,7 +1028,7 @@ create or replace function checkout_row(_row_id text, commit_id uuid) returns vo
save_search_path text;
begin
saved_search_path := current_setting('search_path', true);
set search_path to '';
set search_path to 'nonexistent_schema';

for commit_row in
select
Expand Down

0 comments on commit b7f4f86

Please sign in to comment.