Commit c7d07b5a authored by Tom Lane's avatar Tom Lane

conversion test fails if there is an existing user named foo. Choose a name

somewhat less likely to provoke a conflict.
parent 77f7763b
--
-- create user defined conversion
--
CREATE USER foo WITH NOCREATEDB NOCREATEUSER;
SET SESSION AUTHORIZATION foo;
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER;
SET SESSION AUTHORIZATION conversion_test_user;
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
--
-- cannot make same name conversion in same schema
......@@ -1511,4 +1511,4 @@ SELECT CONVERT('foo', 'WIN874', 'UNICODE');
-- return to the super user
--
RESET SESSION AUTHORIZATION;
DROP USER foo;
DROP USER conversion_test_user;
--
-- create user defined conversion
--
CREATE USER foo WITH NOCREATEDB NOCREATEUSER;
SET SESSION AUTHORIZATION foo;
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER;
SET SESSION AUTHORIZATION conversion_test_user;
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
--
-- cannot make same name conversion in same schema
......@@ -369,4 +369,4 @@ SELECT CONVERT('foo', 'WIN874', 'UNICODE');
-- return to the super user
--
RESET SESSION AUTHORIZATION;
DROP USER foo;
DROP USER conversion_test_user;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment