Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 71ec58e

Browse files
committed
Resolve gratuitous tabs in test SQL file
1 parent 28c16f4 commit 71ec58e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ CREATE OR REPLACE FUNCTION chksetconfig()
1717
RETURNS TABLE (db name, "role" name, rolkeyword text, setconfig text[])
1818
AS $$
1919
SELECT COALESCE(d.datname, 'ALL'), COALESCE(r.rolname, 'ALL'),
20-
COALESCE(v.keyword, '-'), s.setconfig
20+
COALESCE(v.keyword, '-'), s.setconfig
2121
FROM pg_db_role_setting s
2222
LEFT JOIN pg_roles r ON (r.oid = s.setrole)
2323
LEFT JOIN pg_database d ON (d.oid = s.setdatabase)
@@ -641,12 +641,12 @@ CREATE USER MAPPING FOR PUBLIC SERVER sv6 OPTIONS (user 'PUBLIC');
641641
CREATE USER MAPPING FOR "Public" SERVER sv7 OPTIONS (user '"Public"');
642642
CREATE USER MAPPING FOR regress_testrolx SERVER sv8 OPTIONS (user 'regress_testrolx');
643643
CREATE USER MAPPING FOR CURRENT_ROLE SERVER sv9
644-
OPTIONS (user 'CURRENT_ROLE'); -- error
644+
OPTIONS (user 'CURRENT_ROLE'); -- error
645645
ERROR: syntax error at or near "CURRENT_ROLE"
646646
LINE 1: CREATE USER MAPPING FOR CURRENT_ROLE SERVER sv9
647647
^
648648
CREATE USER MAPPING FOR nonexistent SERVER sv9
649-
OPTIONS (user 'nonexistent'); -- error;
649+
OPTIONS (user 'nonexistent'); -- error;
650650
ERROR: role "nonexistent" does not exist
651651
SELECT * FROM chkumapping();
652652
umname | umserver | umoptions
@@ -860,7 +860,7 @@ GRANT ALL PRIVILEGES ON FUNCTION testagg5(int2) TO "Public";
860860
GRANT ALL PRIVILEGES ON FUNCTION testagg6(int2) TO regress_testrolx;
861861
GRANT ALL PRIVILEGES ON FUNCTION testagg7(int2) TO "public";
862862
GRANT ALL PRIVILEGES ON FUNCTION testagg8(int2)
863-
TO current_user, public, regress_testrolx;
863+
TO current_user, public, regress_testrolx;
864864
SELECT proname, proacl FROM pg_proc WHERE proname LIKE 'testagg_';
865865
proname | proacl
866866
----------+-----------------------------------------------------------------------------------------------------------------------------------
@@ -913,7 +913,7 @@ REVOKE ALL PRIVILEGES ON FUNCTION testagg5(int2) FROM "Public";
913913
REVOKE ALL PRIVILEGES ON FUNCTION testagg6(int2) FROM regress_testrolx;
914914
REVOKE ALL PRIVILEGES ON FUNCTION testagg7(int2) FROM "public";
915915
REVOKE ALL PRIVILEGES ON FUNCTION testagg8(int2)
916-
FROM current_user, public, regress_testrolx;
916+
FROM current_user, public, regress_testrolx;
917917
SELECT proname, proacl FROM pg_proc WHERE proname LIKE 'testagg_';
918918
proname | proacl
919919
----------+---------------------------------------

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CREATE OR REPLACE FUNCTION chksetconfig()
1818
RETURNS TABLE (db name, "role" name, rolkeyword text, setconfig text[])
1919
AS $$
2020
SELECT COALESCE(d.datname, 'ALL'), COALESCE(r.rolname, 'ALL'),
21-
COALESCE(v.keyword, '-'), s.setconfig
21+
COALESCE(v.keyword, '-'), s.setconfig
2222
FROM pg_db_role_setting s
2323
LEFT JOIN pg_roles r ON (r.oid = s.setrole)
2424
LEFT JOIN pg_database d ON (d.oid = s.setdatabase)
@@ -312,9 +312,9 @@ CREATE USER MAPPING FOR "Public" SERVER sv7 OPTIONS (user '"Public"');
312312
CREATE USER MAPPING FOR regress_testrolx SERVER sv8 OPTIONS (user 'regress_testrolx');
313313

314314
CREATE USER MAPPING FOR CURRENT_ROLE SERVER sv9
315-
OPTIONS (user 'CURRENT_ROLE'); -- error
315+
OPTIONS (user 'CURRENT_ROLE'); -- error
316316
CREATE USER MAPPING FOR nonexistent SERVER sv9
317-
OPTIONS (user 'nonexistent'); -- error;
317+
OPTIONS (user 'nonexistent'); -- error;
318318

319319
SELECT * FROM chkumapping();
320320

@@ -416,7 +416,7 @@ GRANT ALL PRIVILEGES ON FUNCTION testagg5(int2) TO "Public";
416416
GRANT ALL PRIVILEGES ON FUNCTION testagg6(int2) TO regress_testrolx;
417417
GRANT ALL PRIVILEGES ON FUNCTION testagg7(int2) TO "public";
418418
GRANT ALL PRIVILEGES ON FUNCTION testagg8(int2)
419-
TO current_user, public, regress_testrolx;
419+
TO current_user, public, regress_testrolx;
420420

421421
SELECT proname, proacl FROM pg_proc WHERE proname LIKE 'testagg_';
422422

@@ -435,7 +435,7 @@ REVOKE ALL PRIVILEGES ON FUNCTION testagg5(int2) FROM "Public";
435435
REVOKE ALL PRIVILEGES ON FUNCTION testagg6(int2) FROM regress_testrolx;
436436
REVOKE ALL PRIVILEGES ON FUNCTION testagg7(int2) FROM "public";
437437
REVOKE ALL PRIVILEGES ON FUNCTION testagg8(int2)
438-
FROM current_user, public, regress_testrolx;
438+
FROM current_user, public, regress_testrolx;
439439

440440
SELECT proname, proacl FROM pg_proc WHERE proname LIKE 'testagg_';
441441

0 commit comments

Comments
 (0)