@@ -125,32 +125,32 @@ select
125125*/
126126-- Make sure SQLI enabling characters are blocked
127127-- Use savepoints to test error conditions without aborting the transaction
128- SAVEPOINT test_invalid_names ;
128+ SAVEPOINT test_invalid_names_1 ;
129129select pgmq.create('F--oo');
130130ERROR: queue name contains invalid characters: $, ;, --, or \'
131131CONTEXT: PL/pgSQL function pgmq.format_table_name(text,text) line 5 at RAISE
132132PL/pgSQL function pgmq.create_non_partitioned(text) line 3 during statement block local variable initialization
133133SQL statement "SELECT pgmq.create_non_partitioned(queue_name)"
134134PL/pgSQL function pgmq."create"(text) line 3 at PERFORM
135- ROLLBACK TO SAVEPOINT test_invalid_names ;
136- SAVEPOINT test_invalid_names ;
135+ ROLLBACK TO SAVEPOINT test_invalid_names_1 ;
136+ SAVEPOINT test_invalid_names_2 ;
137137select pgmq.create('F$oo');
138138ERROR: queue name contains invalid characters: $, ;, --, or \'
139139CONTEXT: PL/pgSQL function pgmq.format_table_name(text,text) line 5 at RAISE
140140SQL expression "pgmq.format_table_name(queue_name, 'q')"
141141PL/pgSQL function pgmq.create_non_partitioned(text) line 3 during statement block local variable initialization
142142SQL statement "SELECT pgmq.create_non_partitioned(queue_name)"
143143PL/pgSQL function pgmq."create"(text) line 3 at PERFORM
144- ROLLBACK TO SAVEPOINT test_invalid_names ;
145- SAVEPOINT test_invalid_names ;
144+ ROLLBACK TO SAVEPOINT test_invalid_names_2 ;
145+ SAVEPOINT test_invalid_names_3 ;
146146select pgmq.create($$F'oo$$);
147147ERROR: queue name contains invalid characters: $, ;, --, or \'
148148CONTEXT: PL/pgSQL function pgmq.format_table_name(text,text) line 5 at RAISE
149149SQL expression "pgmq.format_table_name(queue_name, 'q')"
150150PL/pgSQL function pgmq.create_non_partitioned(text) line 3 during statement block local variable initialization
151151SQL statement "SELECT pgmq.create_non_partitioned(queue_name)"
152152PL/pgSQL function pgmq."create"(text) line 3 at PERFORM
153- ROLLBACK TO SAVEPOINT test_invalid_names ;
153+ ROLLBACK TO SAVEPOINT test_invalid_names_3 ;
154154\echo
155155
156156-- pgmq schema functions with owners (ownership is modified on ansible/files/postgresql_extension_custom_scripts/pgmq/after-create.sql)
0 commit comments