Skip to content

Commit 925e639

Browse files
committed
checkin broken test
1 parent da57e6e commit 925e639

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

nix/tests/expected/pgmq.out

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,23 @@ select
111111
t
112112
(1 row)
113113

114+
select
115+
pgmq.create_partitioned('my_partitioned_queue');
116+
ERROR: 10000 is not a valid partitioning type for pg_partman
117+
CONTEXT: PL/pgSQL function create_parent(text,text,text,text,text,integer,text,boolean,text,text[],text,boolean,text) line 119 at RAISE
118+
SQL statement "SELECT public.create_parent(
119+
fq_qtable,
120+
partition_col, 'native', partition_interval
121+
)"
122+
PL/pgSQL function pgmq.create_partitioned(text,text,text) line 33 at PERFORM
123+
DETAIL:
124+
HINT:
125+
CONTEXT: PL/pgSQL function create_parent(text,text,text,text,text,integer,text,boolean,text,text[],text,boolean,text) line 647 at RAISE
126+
SQL statement "SELECT public.create_parent(
127+
fq_qtable,
128+
partition_col, 'native', partition_interval
129+
)"
130+
PL/pgSQL function pgmq.create_partitioned(text,text,text) line 33 at PERFORM
114131
-- Make sure SQLI enabling characters are blocked
115132
select pgmq.create('F--oo');
116133
ERROR: queue name contains invalid characters: $, ;, --, or \'

nix/tests/sql/pgmq.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,15 @@ select
7171
select
7272
pgmq.drop_queue('my_queue');
7373

74+
select
75+
pgmq.create_partitioned('my_partitioned_queue');
76+
77+
7478
-- Make sure SQLI enabling characters are blocked
7579
select pgmq.create('F--oo');
7680
select pgmq.create('F$oo');
7781
select pgmq.create($$F'oo$$);
7882
7983
84+
85+

0 commit comments

Comments
 (0)