~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/backend/utils/mb/conversion_procs/regress_prolog

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--
 
2
-- create user defined conversion
 
3
--
 
4
CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER;
 
5
SET SESSION AUTHORIZATION conversion_test_user;
 
6
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
 
7
--
 
8
-- cannot make same name conversion in same schema
 
9
--
 
10
CREATE CONVERSION myconv FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
 
11
--
 
12
-- create default conversion with qualified name
 
13
--
 
14
CREATE DEFAULT CONVERSION public.mydef FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
 
15
--
 
16
-- cannot make default conversion with same shcema/for_encoding/to_encoding
 
17
--
 
18
CREATE DEFAULT CONVERSION public.mydef2 FOR 'LATIN1' TO 'UNICODE' FROM iso8859_1_to_utf8;
 
19
--
 
20
-- drop user defined conversion
 
21
--
 
22
DROP CONVERSION myconv;
 
23
DROP CONVERSION mydef;
 
24
--
 
25
-- make sure all pre-defined conversions are fine.