Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bae9e8a

Browse filesBrowse 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
Copy full SHA for bae9e8a

File tree

Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/test/modules/unsafe_tests/expected/rolenames.out
+4-1Lines 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

Copy file name to clipboardExpand all lines: src/test/modules/unsafe_tests/sql/rolenames.sql
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.