summaryrefslogtreecommitdiff
path: root/src/test/mb/expected/mule_internal.out
blob: ac8b57dc4216fd68bc74ef774a934cef1f3db707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
drop table גђ;
ERROR:  table "גђ" does not exist
create table גђ (ђ text, ʬ varchar, 1A char(16));
create index גђindex1 on גђ using btree (ђ);
create index גђindex2 on גђ using hash (ʬ);
insert into גђ values('Ԓ咡ǒג쒥','A01');
insert into גђ values('Ԓ咡钥ՒÒ','ʬB10');
insert into גђ values('Ԓ咡ג풥钥ޒ','Z01');
vacuum גђ;
select * from גђ;
            ђ            | ʬ | 1a 
----------------------------+------------+------------
 Ԓ咡ǒג쒥   | A01    | 
 Ԓ咡钥ՒÒ | ʬB10    | 
 Ԓ咡ג풥钥ޒ   | Z01    | 
(3 rows)

select * from גђ where ʬ = 'Z01';
           ђ           | ʬ | 1a 
--------------------------+------------+------------
 Ԓ咡ג풥钥ޒ | Z01    | 
(1 row)

select * from גђ where ʬ ~* 'z01';
           ђ           | ʬ | 1a 
--------------------------+------------+------------
 Ԓ咡ג풥钥ޒ | Z01    | 
(1 row)

select * from גђ where ʬ like '_Z01_';
           ђ           | ʬ | 1a 
--------------------------+------------+------------
 Ԓ咡ג풥钥ޒ | Z01    | 
(1 row)

select * from גђ where ʬ like '_Z%';
           ђ           | ʬ | 1a 
--------------------------+------------+------------
 Ԓ咡ג풥钥ޒ | Z01    | 
(1 row)

select * from גђ where ђ ~ 'Ԓ咡[ǒ]';
            ђ            | ʬ | 1a 
----------------------------+------------+------------
 Ԓ咡ǒג쒥   | A01    | 
 Ԓ咡钥ՒÒ | ʬB10    | 
(2 rows)

select * from גђ where ђ ~* 'Ԓ咡[ǒ]';
            ђ            | ʬ | 1a 
----------------------------+------------+------------
 Ԓ咡ǒג쒥   | A01    | 
 Ԓ咡钥ՒÒ | ʬB10    | 
(2 rows)

select *,character_length(ђ) from גђ;
            ђ            | ʬ | 1a | character_length 
----------------------------+------------+------------+------------------
 Ԓ咡ǒג쒥   | A01    |            |               12
 Ԓ咡钥ՒÒ | ʬB10    |            |               13
 Ԓ咡ג풥钥ޒ   | Z01    |            |               12
(3 rows)

select *,octet_length(ђ) from גђ;
            ђ            | ʬ | 1a | octet_length 
----------------------------+------------+------------+--------------
 Ԓ咡ǒג쒥   | A01    |            |           36
 Ԓ咡钥ՒÒ | ʬB10    |            |           39
 Ԓ咡ג풥钥ޒ   | Z01    |            |           36
(3 rows)

select *,position('' in ђ) from גђ;
            ђ            | ʬ | 1a | position 
----------------------------+------------+------------+----------
 Ԓ咡ǒג쒥   | A01    |            |        7
 Ԓ咡钥ՒÒ | ʬB10    |            |        0
 Ԓ咡ג풥钥ޒ   | Z01    |            |        0
(3 rows)

select *,substring(ђ from 10 for 4) from גђ;
            ђ            | ʬ | 1a | substring 
----------------------------+------------+------------+-----------
 Ԓ咡ǒג쒥   | A01    |            | ג쒥
 Ԓ咡钥ՒÒ | ʬB10    |            | Ò
 Ԓ咡ג풥钥ޒ   | Z01    |            | 钥ޒ
(3 rows)

drop table Ƒ㑻;
ERROR:  table "Ƒ㑻" does not exist
create table Ƒ㑻( text, ֑ varchar, ע1A char(16));
create index Ƒ㑻index1 on Ƒ㑻 using btree();
create index Ƒ㑻index2 on Ƒ㑻 using btree(֑);
insert into Ƒ㑻 values('ԑԑʾ','A01');
insert into Ƒ㑻 values('ԑͼ','B01');
insert into Ƒ㑻 values('ԑ̑Ա','Z01');
vacuum Ƒ㑻;
select * from Ƒ㑻;
        | ֑  | ע1a 
------------+---------+--------
 ԑԑʾ | A01 | 
 ԑͼ   | B01 | 
 ԑ̑Ա | Z01 | 
(3 rows)

select * from Ƒ㑻 where ֑ = 'Z01';
        | ֑  | ע1a 
------------+---------+--------
 ԑ̑Ա | Z01 | 
(1 row)

select * from Ƒ㑻 where ֑ ~* 'z01';
        | ֑  | ע1a 
------------+---------+--------
 ԑ̑Ա | Z01 | 
(1 row)

select * from Ƒ㑻 where ֑ like '_Z01_';
        | ֑  | ע1a 
------------+---------+--------
 ԑ̑Ա | Z01 | 
(1 row)

select * from Ƒ㑻 where ֑ like '_Z%';
        | ֑  | ע1a 
------------+---------+--------
 ԑ̑Ա | Z01 | 
(1 row)

select * from Ƒ㑻 where  ~ '[ԑͼ]';
        | ֑  | ע1a 
------------+---------+--------
 ԑԑʾ | A01 | 
 ԑͼ   | B01 | 
(2 rows)

select * from Ƒ㑻 where  ~* '[ԑͼ]';
        | ֑  | ע1a 
------------+---------+--------
 ԑԑʾ | A01 | 
 ԑͼ   | B01 | 
(2 rows)

select *,character_length() from Ƒ㑻;
        | ֑  | ע1a | character_length 
------------+---------+--------+------------------
 ԑԑʾ | A01 |        |                5
 ԑͼ   | B01 |        |                4
 ԑ̑Ա | Z01 |        |                5
(3 rows)

select *,octet_length() from Ƒ㑻;
        | ֑  | ע1a | octet_length 
------------+---------+--------+--------------
 ԑԑʾ | A01 |        |           15
 ԑͼ   | B01 |        |           12
 ԑ̑Ա | Z01 |        |           15
(3 rows)

select *,position('' in ) from Ƒ㑻;
        | ֑  | ע1a | position 
------------+---------+--------+----------
 ԑԑʾ | A01 |        |        3
 ԑͼ   | B01 |        |        0
 ԑ̑Ա | Z01 |        |        0
(3 rows)

select *,substring( from 3 for 4) from Ƒ㑻;
        | ֑  | ע1a | substring 
------------+---------+--------+-----------
 ԑԑʾ | A01 |        | ԑʾ
 ԑͼ   | B01 |        | ͼ
 ԑ̑Ա | Z01 |        | ̑Ա
(3 rows)

drop table ͪߩѦ듾;
ERROR:  table "ͪߩѦ듾" does not exist
create table ͪߩѦ듾 (듾 text, “׾ړ varchar, 1A󓱸 char(16));
create index ͪߩѦ듾index1 on ͪߩѦ듾 using btree (듾);
create index ͪߩѦ듾index2 on ͪߩѦ듾 using hash (“׾ړ);
insert into ͪߩѦ듾 values('ēǻ͓𓽺Ó', 'ѦA01߾');
insert into ͪߩѦ듾 values('ēǻ͓דȓ', 'B10');
insert into ͪߩѦ듾 values('ēǻ͓Γד', 'Z01');
vacuum ͪߩѦ듾;
select * from ͪߩѦ듾;
       듾       | “׾ړ | 1a󓱸 
------------------+----------+------------
 ēǻ͓𓽺Ó | ѦA01߾  | 
 ēǻ͓דȓ   | B10  | 
 ēǻ͓Γד | Z01  | 
(3 rows)

select * from ͪߩѦ듾 where “׾ړ = 'Z01';
       듾       | “׾ړ | 1a󓱸 
------------------+----------+------------
 ēǻ͓Γד | Z01  | 
(1 row)

select * from ͪߩѦ듾 where “׾ړ ~* 'z01';
       듾       | “׾ړ | 1a󓱸 
------------------+----------+------------
 ēǻ͓Γד | Z01  | 
(1 row)

select * from ͪߩѦ듾 where “׾ړ like '_Z01_';
       듾       | “׾ړ | 1a󓱸 
------------------+----------+------------
 ēǻ͓Γד | Z01  | 
(1 row)

select * from ͪߩѦ듾 where “׾ړ like '_Z%';
       듾       | “׾ړ | 1a󓱸 
------------------+----------+------------
 ēǻ͓Γד | Z01  | 
(1 row)

select * from ͪߩѦ듾 where 듾 ~ 'ēǻ[]';
       듾       | “׾ړ | 1a󓱸 
------------------+----------+------------
 ēǻ͓𓽺Ó | ѦA01߾  | 
 ēǻ͓דȓ   | B10  | 
(2 rows)

select * from ͪߩѦ듾 where 듾 ~* 'ēǻ[]';
       듾       | “׾ړ | 1a󓱸 
------------------+----------+------------
 ēǻ͓𓽺Ó | ѦA01߾  | 
 ēǻ͓דȓ   | B10  | 
(2 rows)

select *,character_length(듾) from ͪߩѦ듾;
       듾       | “׾ړ | 1a󓱸 | character_length 
------------------+----------+------------+------------------
 ēǻ͓𓽺Ó | ѦA01߾  |            |                8
 ēǻ͓דȓ   | B10  |            |                7
 ēǻ͓Γד | Z01  |            |                8
(3 rows)

select *,octet_length(듾) from ͪߩѦ듾;
       듾       | “׾ړ | 1a󓱸 | octet_length 
------------------+----------+------------+--------------
 ēǻ͓𓽺Ó | ѦA01߾  |            |           24
 ēǻ͓דȓ   | B10  |            |           21
 ēǻ͓Γד | Z01  |            |           24
(3 rows)

select *,position('' in 듾) from ͪߩѦ듾;
       듾       | “׾ړ | 1a󓱸 | position 
------------------+----------+------------+----------
 ēǻ͓𓽺Ó | ѦA01߾  |            |        4
 ēǻ͓דȓ   | B10  |            |        0
 ēǻ͓Γד | Z01  |            |        0
(3 rows)

select *,substring(듾 from 3 for 4) from ͪߩѦ듾;
       듾       | “׾ړ | 1a󓱸 | substring 
------------------+----------+------------+-----------
 ēǻ͓𓽺Ó | ѦA01߾  |            | ͓𓽺
 ēǻ͓דȓ   | B10  |            | ͓ד
 ēǻ͓Γד | Z01  |            | ͓Γ
(3 rows)

drop table test;
ERROR:  table "test" does not exist
create table test (t text);
insert into test values('ENGLISH');
insert into test values('FRANAIS');
insert into test values('ESPAOL');
insert into test values('SLENSKA');
insert into test values('ENGLISH FRANAIS ESPAOL SLENSKA');
vacuum test;
select * from test;
                 t                 
-----------------------------------
 ENGLISH
 FRANAIS
 ESPAOL
 SLENSKA
 ENGLISH FRANAIS ESPAOL SLENSKA
(5 rows)

select * from test where t = 'ESPAOL';
    t    
---------
 ESPAOL
(1 row)

select * from test where t ~* 'espaol';
                 t                 
-----------------------------------
 ESPAOL
 ENGLISH FRANAIS ESPAOL SLENSKA
(2 rows)

select *,character_length(t) from test;
                 t                 | character_length 
-----------------------------------+------------------
 ENGLISH                           |                7
 FRANAIS                          |                8
 ESPAOL                           |                7
 SLENSKA                          |                8
 ENGLISH FRANAIS ESPAOL SLENSKA |               33
(5 rows)

select *,octet_length(t) from test;
                 t                 | octet_length 
-----------------------------------+--------------
 ENGLISH                           |            7
 FRANAIS                          |            9
 ESPAOL                           |            8
 SLENSKA                          |            9
 ENGLISH FRANAIS ESPAOL SLENSKA |           36
(5 rows)

select *,position('L' in t) from test;
                 t                 | position 
-----------------------------------+----------
 ENGLISH                           |        4
 FRANAIS                          |        0
 ESPAOL                           |        7
 SLENSKA                          |        3
 ENGLISH FRANAIS ESPAOL SLENSKA |        4
(5 rows)

select *,substring(t from 3 for 4) from test;
                 t                 | substring 
-----------------------------------+-----------
 ENGLISH                           | GLIS
 FRANAIS                          | ANA
 ESPAOL                           | PAO
 SLENSKA                          | LENS
 ENGLISH FRANAIS ESPAOL SLENSKA | GLIS
(5 rows)