Skip to content

Commit

Permalink
run test
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Nov 21, 2023
1 parent aa36cf9 commit 6b37173
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Empty file.
31 changes: 31 additions & 0 deletions test/sql/test_space_in_name.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
select 1 from pg_create_logical_replication_slot('realtime', 'wal2json', false);

create table public."User Notes"(
id int primary key
);

insert into realtime.subscription(subscription_id, entity, claims)
select
seed_uuid(1),
'public.User Notes',
jsonb_build_object(
'role', 'authenticated',
'email', 'example@example.com',
'sub', seed_uuid(1)::text
);

select clear_wal();
insert into public."User Notes"(id) values (1);

select
rec,
is_rls_enabled,
subscription_ids,
errors
from
walrus;


drop table public.notes;
select pg_drop_replication_slot('realtime');
truncate table realtime.subscription;

0 comments on commit 6b37173

Please sign in to comment.