conversion test fails if there is an existing user named foo. Choose a name
somewhat less likely to provoke a conflict.
This commit is contained in:
parent
77f7763b55
commit
c7d07b5a45
src/test/regress
@ -1,8 +1,8 @@
|
|||||||
--
|
--
|
||||||
-- create user defined conversion
|
-- create user defined conversion
|
||||||
--
|
--
|
||||||
CREATE USER foo WITH NOCREATEDB NOCREATEUSER;
|
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER;
|
||||||
SET SESSION AUTHORIZATION foo;
|
SET SESSION AUTHORIZATION conversion_test_user;
|
||||||
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
|
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
|
||||||
--
|
--
|
||||||
-- cannot make same name conversion in same schema
|
-- cannot make same name conversion in same schema
|
||||||
@ -1511,4 +1511,4 @@ SELECT CONVERT('foo', 'WIN874', 'UNICODE');
|
|||||||
-- return to the super user
|
-- return to the super user
|
||||||
--
|
--
|
||||||
RESET SESSION AUTHORIZATION;
|
RESET SESSION AUTHORIZATION;
|
||||||
DROP USER foo;
|
DROP USER conversion_test_user;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
--
|
--
|
||||||
-- create user defined conversion
|
-- create user defined conversion
|
||||||
--
|
--
|
||||||
CREATE USER foo WITH NOCREATEDB NOCREATEUSER;
|
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER;
|
||||||
SET SESSION AUTHORIZATION foo;
|
SET SESSION AUTHORIZATION conversion_test_user;
|
||||||
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
|
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
|
||||||
--
|
--
|
||||||
-- cannot make same name conversion in same schema
|
-- cannot make same name conversion in same schema
|
||||||
@ -369,4 +369,4 @@ SELECT CONVERT('foo', 'WIN874', 'UNICODE');
|
|||||||
-- return to the super user
|
-- return to the super user
|
||||||
--
|
--
|
||||||
RESET SESSION AUTHORIZATION;
|
RESET SESSION AUTHORIZATION;
|
||||||
DROP USER foo;
|
DROP USER conversion_test_user;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user