Skip to content

Commit bae9e8a

Browse files
committed
Fix typo in test
The test was supposed to error but didn't. Apparently, a copy and paste and string replace mistake from a nearby similar test.
1 parent 321fa6a commit bae9e8a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/test/modules/unsafe_tests/expected/rolenames.out

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,10 @@ SELECT * FROM chksetconfig();
429429
----+------+------------+-----------
430430
(0 rows)
431431

432-
ALTER USER CURRENT_USER SET application_name to 'BAZ'; -- error
432+
ALTER USER CURRENT_ROLE SET application_name to 'BAZ'; -- error
433+
ERROR: syntax error at or near "CURRENT_ROLE"
434+
LINE 1: ALTER USER CURRENT_ROLE SET application_name to 'BAZ';
435+
^
433436
ALTER USER USER SET application_name to 'BOOM'; -- error
434437
ERROR: syntax error at or near "USER"
435438
LINE 1: ALTER USER USER SET application_name to 'BOOM';

src/test/modules/unsafe_tests/sql/rolenames.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ ALTER USER ALL RESET application_name;
180180
SELECT * FROM chksetconfig();
181181

182182

183-
ALTER USER CURRENT_USER SET application_name to 'BAZ'; -- error
183+
ALTER USER CURRENT_ROLE SET application_name to 'BAZ'; -- error
184184
ALTER USER USER SET application_name to 'BOOM'; -- error
185185
ALTER USER PUBLIC SET application_name to 'BOMB'; -- error
186186
ALTER USER NONE SET application_name to 'BOMB'; -- error

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy