3
-------------------------------------------------------------------
5
-------------------------------------------------------------------
7
DROP DATABASE IF EXISTS mysqltest1|
8
CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
10
CREATE TABLE t1(кол INT)|
11
INSERT INTO t1 VALUES(1)|
14
SELECT 'тест' AS c1, кол AS c2
17
CREATE VIEW v2 AS SELECT _koi8r'����' as c1|
19
CREATE VIEW v3 AS SELECT _koi8r'����'|
24
View Create View character_set_client collation_connection
25
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'тест' AS `c1`,`t1`.`кол` AS `c2` from `t1` utf8 utf8_general_ci
28
View Create View character_set_client collation_connection
29
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _koi8r'����' AS `c1` utf8 utf8_general_ci
32
View Create View character_set_client collation_connection
33
v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _koi8r'����' AS `тест` utf8 utf8_general_ci
36
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
37
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
38
NULL mysqltest1 v1 select 'тест' AS `c1`,`mysqltest1`.`t1`.`кол` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER utf8 utf8_general_ci
40
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
41
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
42
NULL mysqltest1 v2 select 'тест' AS `c1` NONE NO root@localhost DEFINER utf8 utf8_general_ci
44
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
45
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
46
NULL mysqltest1 v3 select 'тест' AS `тест` NONE NO root@localhost DEFINER utf8 utf8_general_ci
49
SELECT COLLATION(c1), COLLATION(c2) FROM v1|
50
COLLATION(c1) COLLATION(c2)
51
utf8_general_ci binary
53
SELECT COLLATION(c1) FROM v2|
62
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
65
SET @@character_set_client= cp1251|
66
SET @@character_set_results= cp1251|
67
SET @@collation_connection= cp1251_general_ci|
68
SELECT * FROM mysqltest1.v1|
69
SELECT * FROM mysqltest1.v2|
70
SELECT * FROM mysqltest1.v3|
76
View Create View character_set_client collation_connection
77
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'тест' AS `c1`,`t1`.`кол` AS `c2` from `t1` utf8 utf8_general_ci
80
View Create View character_set_client collation_connection
81
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _koi8r'����' AS `c1` utf8 utf8_general_ci
84
View Create View character_set_client collation_connection
85
v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _koi8r'����' AS `тест` utf8 utf8_general_ci
88
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
89
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
90
NULL mysqltest1 v1 select 'тест' AS `c1`,`mysqltest1`.`t1`.`кол` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER utf8 utf8_general_ci
92
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
93
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
94
NULL mysqltest1 v2 select 'тест' AS `c1` NONE NO root@localhost DEFINER utf8 utf8_general_ci
96
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
97
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
98
NULL mysqltest1 v3 select 'тест' AS `тест` NONE NO root@localhost DEFINER utf8 utf8_general_ci
101
SELECT COLLATION(c1), COLLATION(c2) FROM v1|
102
COLLATION(c1) COLLATION(c2)
103
utf8_general_ci binary
105
SELECT COLLATION(c1) FROM v2|
113
---> Dumping mysqltest1 to ddl_i18n_utf8views.mysqltest1.sql
116
DROP DATABASE mysqltest1|
119
---> Restoring mysqltest1...
121
---> connection: con3
122
SET @@character_set_client= cp1251|
123
SET @@character_set_results= cp1251|
124
SET @@collation_connection= cp1251_general_ci|
125
SELECT * FROM mysqltest1.v1|
126
SELECT * FROM mysqltest1.v2|
127
SELECT * FROM mysqltest1.v3|
133
View Create View character_set_client collation_connection
134
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 'тест' AS `c1`,`t1`.`кол` AS `c2` from `t1` utf8 utf8_general_ci
137
View Create View character_set_client collation_connection
138
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select _koi8r'����' AS `c1` utf8 utf8_general_ci
141
View Create View character_set_client collation_connection
142
v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select _koi8r'����' AS `тест` utf8 utf8_general_ci
145
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v1'|
146
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
147
NULL mysqltest1 v1 select 'тест' AS `c1`,`mysqltest1`.`t1`.`кол` AS `c2` from `mysqltest1`.`t1` NONE YES root@localhost DEFINER utf8 utf8_general_ci
149
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v2'|
150
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
151
NULL mysqltest1 v2 select 'тест' AS `c1` NONE NO root@localhost DEFINER utf8 utf8_general_ci
153
SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v3'|
154
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
155
NULL mysqltest1 v3 select 'тест' AS `тест` NONE NO root@localhost DEFINER utf8 utf8_general_ci
158
SELECT COLLATION(c1), COLLATION(c2) FROM v1|
159
COLLATION(c1) COLLATION(c2)
160
utf8_general_ci binary
162
SELECT COLLATION(c1) FROM v2|
170
---> connection: default
172
DROP DATABASE mysqltest1|
174
-------------------------------------------------------------------
175
Stored procedures/functions
176
-------------------------------------------------------------------
178
DROP DATABASE IF EXISTS mysqltest1|
179
DROP DATABASE IF EXISTS mysqltest2|
180
CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
181
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
185
INOUT парам1 CHAR(10),
188
DECLARE перем1 CHAR(10);
190
COLLATION(перем1) AS c1,
191
COLLATION(парам1) AS c2,
192
COLLATION(парам2) AS c3;
194
COLLATION('текст') AS c4,
195
COLLATION(_utf8 'текст') AS c5,
196
COLLATION(_koi8r '�����') AS c6,
197
@@collation_connection AS c7,
198
@@character_set_client AS c8;
204
INOUT парам1 CHAR(10) CHARACTER SET utf8,
205
OUT парам2 CHAR(10) CHARACTER SET utf8)
207
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
209
COLLATION(перем1) AS c1,
210
COLLATION(парам1) AS c2,
211
COLLATION(парам2) AS c3;
213
COLLATION('текст') AS c4,
214
COLLATION(_utf8 'текст') AS c5,
215
COLLATION(_koi8r '�����') AS c6,
216
@@collation_connection AS c7,
217
@@character_set_client AS c8;
222
CREATE PROCEDURE mysqltest2.p3(
223
INOUT парам1 CHAR(10),
226
DECLARE перем1 CHAR(10);
228
COLLATION(перем1) AS c1,
229
COLLATION(парам1) AS c2,
230
COLLATION(парам2) AS c3;
232
COLLATION('текст') AS c4,
233
COLLATION(_utf8 'текст') AS c5,
234
COLLATION(_koi8r '�����') AS c6,
235
@@collation_connection AS c7,
236
@@character_set_client AS c8;
241
CREATE PROCEDURE mysqltest2.p4(
242
INOUT парам1 CHAR(10) CHARACTER SET utf8,
243
OUT парам2 CHAR(10) CHARACTER SET utf8)
245
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
247
COLLATION(перем1) AS c1,
248
COLLATION(парам1) AS c2,
249
COLLATION(парам2) AS c3;
251
COLLATION('текст') AS c4,
252
COLLATION(_utf8 'текст') AS c5,
253
COLLATION(_koi8r '�����') AS c6,
254
@@collation_connection AS c7,
255
@@character_set_client AS c8;
261
SHOW CREATE PROCEDURE p1|
262
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
263
p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
264
INOUT парам1 CHAR(10),
267
DECLARE перем1 CHAR(10);
269
COLLATION(перем1) AS c1,
270
COLLATION(парам1) AS c2,
271
COLLATION(парам2) AS c3;
273
COLLATION('текст') AS c4,
274
COLLATION(_utf8 'текст') AS c5,
275
COLLATION(_koi8r '�����') AS c6,
276
@@collation_connection AS c7,
277
@@character_set_client AS c8;
280
END utf8 utf8_general_ci utf8_unicode_ci
282
SHOW CREATE PROCEDURE p2|
283
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
284
p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
285
INOUT парам1 CHAR(10) CHARACTER SET utf8,
286
OUT парам2 CHAR(10) CHARACTER SET utf8)
288
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
290
COLLATION(перем1) AS c1,
291
COLLATION(парам1) AS c2,
292
COLLATION(парам2) AS c3;
294
COLLATION('текст') AS c4,
295
COLLATION(_utf8 'текст') AS c5,
296
COLLATION(_koi8r '�����') AS c6,
297
@@collation_connection AS c7,
298
@@character_set_client AS c8;
301
END utf8 utf8_general_ci utf8_unicode_ci
303
SHOW CREATE PROCEDURE mysqltest2.p3|
304
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
305
p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
306
INOUT парам1 CHAR(10),
309
DECLARE перем1 CHAR(10);
311
COLLATION(перем1) AS c1,
312
COLLATION(парам1) AS c2,
313
COLLATION(парам2) AS c3;
315
COLLATION('текст') AS c4,
316
COLLATION(_utf8 'текст') AS c5,
317
COLLATION(_koi8r '�����') AS c6,
318
@@collation_connection AS c7,
319
@@character_set_client AS c8;
322
END utf8 utf8_general_ci utf8_unicode_ci
324
SHOW CREATE PROCEDURE mysqltest2.p4|
325
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
326
p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
327
INOUT парам1 CHAR(10) CHARACTER SET utf8,
328
OUT парам2 CHAR(10) CHARACTER SET utf8)
330
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
332
COLLATION(перем1) AS c1,
333
COLLATION(парам1) AS c2,
334
COLLATION(парам2) AS c3;
336
COLLATION('текст') AS c4,
337
COLLATION(_utf8 'текст') AS c5,
338
COLLATION(_koi8r '�����') AS c6,
339
@@collation_connection AS c7,
340
@@character_set_client AS c8;
343
END utf8 utf8_general_ci utf8_unicode_ci
346
SHOW PROCEDURE STATUS LIKE 'p1'|
347
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
348
mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
350
SHOW PROCEDURE STATUS LIKE 'p2'|
351
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
352
mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
354
SHOW PROCEDURE STATUS LIKE 'p3'|
355
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
356
mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
358
SHOW PROCEDURE STATUS LIKE 'p4'|
359
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
360
mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
363
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
364
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
365
p1 NULL mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
366
DECLARE перем1 CHAR(10);
368
COLLATION(перем1) AS c1,
369
COLLATION(парам1) AS c2,
370
COLLATION(парам2) AS c3;
372
COLLATION('текст') AS c4,
373
COLLATION( 'текст') AS c5,
374
COLLATION( 'текст') AS c6,
375
@@collation_connection AS c7,
376
@@character_set_client AS c8;
379
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
381
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
382
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
383
p2 NULL mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
384
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
386
COLLATION(перем1) AS c1,
387
COLLATION(парам1) AS c2,
388
COLLATION(парам2) AS c3;
390
COLLATION('текст') AS c4,
391
COLLATION( 'текст') AS c5,
392
COLLATION( 'текст') AS c6,
393
@@collation_connection AS c7,
394
@@character_set_client AS c8;
397
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
399
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
400
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
401
p3 NULL mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
402
DECLARE перем1 CHAR(10);
404
COLLATION(перем1) AS c1,
405
COLLATION(парам1) AS c2,
406
COLLATION(парам2) AS c3;
408
COLLATION('текст') AS c4,
409
COLLATION( 'текст') AS c5,
410
COLLATION( 'текст') AS c6,
411
@@collation_connection AS c7,
412
@@character_set_client AS c8;
415
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
417
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
418
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
419
p4 NULL mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
420
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
422
COLLATION(перем1) AS c1,
423
COLLATION(парам1) AS c2,
424
COLLATION(парам2) AS c3;
426
COLLATION('текст') AS c4,
427
COLLATION( 'текст') AS c5,
428
COLLATION( 'текст') AS c6,
429
@@collation_connection AS c7,
430
@@character_set_client AS c8;
433
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
442
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
444
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
445
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
447
utf8_unicode_ci utf8_unicode_ci
451
utf8_general_ci utf8_general_ci utf8_general_ci
453
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
454
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
456
utf8_general_ci utf8_general_ci
458
CALL mysqltest2.p3(@a, @b)|
460
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
462
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
463
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
465
utf8_unicode_ci utf8_unicode_ci
467
CALL mysqltest2.p4(@a, @b)|
469
utf8_general_ci utf8_general_ci utf8_general_ci
471
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
472
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
474
utf8_general_ci utf8_general_ci
477
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
478
ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
480
---> connection: con2
481
SET @@character_set_client= cp1251|
482
SET @@character_set_results= cp1251|
483
SET @@collation_connection= cp1251_general_ci|
486
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
488
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
491
utf8_general_ci utf8_general_ci utf8_general_ci
493
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
494
CALL mysqltest2.p3(@a, @b)|
496
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
498
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
499
CALL mysqltest2.p4(@a, @b)|
501
utf8_general_ci utf8_general_ci utf8_general_ci
503
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
507
SHOW CREATE PROCEDURE p1|
508
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
509
p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
510
INOUT парам1 CHAR(10),
513
DECLARE перем1 CHAR(10);
515
COLLATION(перем1) AS c1,
516
COLLATION(парам1) AS c2,
517
COLLATION(парам2) AS c3;
519
COLLATION('текст') AS c4,
520
COLLATION(_utf8 'текст') AS c5,
521
COLLATION(_koi8r '�����') AS c6,
522
@@collation_connection AS c7,
523
@@character_set_client AS c8;
526
END utf8 utf8_general_ci utf8_unicode_ci
528
SHOW CREATE PROCEDURE p2|
529
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
530
p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
531
INOUT парам1 CHAR(10) CHARACTER SET utf8,
532
OUT парам2 CHAR(10) CHARACTER SET utf8)
534
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
536
COLLATION(перем1) AS c1,
537
COLLATION(парам1) AS c2,
538
COLLATION(парам2) AS c3;
540
COLLATION('текст') AS c4,
541
COLLATION(_utf8 'текст') AS c5,
542
COLLATION(_koi8r '�����') AS c6,
543
@@collation_connection AS c7,
544
@@character_set_client AS c8;
547
END utf8 utf8_general_ci utf8_unicode_ci
549
SHOW CREATE PROCEDURE mysqltest2.p3|
550
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
551
p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
552
INOUT парам1 CHAR(10),
555
DECLARE перем1 CHAR(10);
557
COLLATION(перем1) AS c1,
558
COLLATION(парам1) AS c2,
559
COLLATION(парам2) AS c3;
561
COLLATION('текст') AS c4,
562
COLLATION(_utf8 'текст') AS c5,
563
COLLATION(_koi8r '�����') AS c6,
564
@@collation_connection AS c7,
565
@@character_set_client AS c8;
568
END utf8 utf8_general_ci utf8_unicode_ci
570
SHOW CREATE PROCEDURE mysqltest2.p4|
571
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
572
p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
573
INOUT парам1 CHAR(10) CHARACTER SET utf8,
574
OUT парам2 CHAR(10) CHARACTER SET utf8)
576
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
578
COLLATION(перем1) AS c1,
579
COLLATION(парам1) AS c2,
580
COLLATION(парам2) AS c3;
582
COLLATION('текст') AS c4,
583
COLLATION(_utf8 'текст') AS c5,
584
COLLATION(_koi8r '�����') AS c6,
585
@@collation_connection AS c7,
586
@@character_set_client AS c8;
589
END utf8 utf8_general_ci utf8_unicode_ci
592
SHOW PROCEDURE STATUS LIKE 'p1'|
593
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
594
mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
596
SHOW PROCEDURE STATUS LIKE 'p2'|
597
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
598
mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
600
SHOW PROCEDURE STATUS LIKE 'p3'|
601
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
602
mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
604
SHOW PROCEDURE STATUS LIKE 'p4'|
605
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
606
mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
609
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
610
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
611
p1 NULL mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
612
DECLARE перем1 CHAR(10);
614
COLLATION(перем1) AS c1,
615
COLLATION(парам1) AS c2,
616
COLLATION(парам2) AS c3;
618
COLLATION('текст') AS c4,
619
COLLATION( 'текст') AS c5,
620
COLLATION( 'текст') AS c6,
621
@@collation_connection AS c7,
622
@@character_set_client AS c8;
625
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
627
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
628
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
629
p2 NULL mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
630
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
632
COLLATION(перем1) AS c1,
633
COLLATION(парам1) AS c2,
634
COLLATION(парам2) AS c3;
636
COLLATION('текст') AS c4,
637
COLLATION( 'текст') AS c5,
638
COLLATION( 'текст') AS c6,
639
@@collation_connection AS c7,
640
@@character_set_client AS c8;
643
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
645
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
646
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
647
p3 NULL mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
648
DECLARE перем1 CHAR(10);
650
COLLATION(перем1) AS c1,
651
COLLATION(парам1) AS c2,
652
COLLATION(парам2) AS c3;
654
COLLATION('текст') AS c4,
655
COLLATION( 'текст') AS c5,
656
COLLATION( 'текст') AS c6,
657
@@collation_connection AS c7,
658
@@character_set_client AS c8;
661
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
663
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
664
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
665
p4 NULL mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
666
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
668
COLLATION(перем1) AS c1,
669
COLLATION(парам1) AS c2,
670
COLLATION(парам2) AS c3;
672
COLLATION('текст') AS c4,
673
COLLATION( 'текст') AS c5,
674
COLLATION( 'текст') AS c6,
675
@@collation_connection AS c7,
676
@@character_set_client AS c8;
679
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
688
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
690
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
691
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
693
utf8_unicode_ci utf8_unicode_ci
697
utf8_general_ci utf8_general_ci utf8_general_ci
699
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
700
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
702
utf8_general_ci utf8_general_ci
704
CALL mysqltest2.p3(@a, @b)|
706
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
708
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
709
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
711
utf8_unicode_ci utf8_unicode_ci
713
CALL mysqltest2.p4(@a, @b)|
715
utf8_general_ci utf8_general_ci utf8_general_ci
717
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
718
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
720
utf8_general_ci utf8_general_ci
722
---> Dump of mysqltest1
724
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
727
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
728
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
729
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
730
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
731
/*!50003 SET character_set_client = utf8 */ ;
732
/*!50003 SET character_set_results = utf8 */ ;
733
/*!50003 SET collation_connection = utf8_general_ci */ ;
734
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
735
/*!50003 SET sql_mode = '' */ ;
737
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p1`(
738
INOUT парам1 CHAR(10),
741
DECLARE перем1 CHAR(10);
743
COLLATION(перем1) AS c1,
744
COLLATION(парам1) AS c2,
745
COLLATION(парам2) AS c3;
747
COLLATION('текст') AS c4,
748
COLLATION(_utf8 'текст') AS c5,
749
COLLATION(_koi8r '�����') AS c6,
750
@@collation_connection AS c7,
751
@@character_set_client AS c8;
756
/*!50003 SET sql_mode = @saved_sql_mode */ ;
757
/*!50003 SET character_set_client = @saved_cs_client */ ;
758
/*!50003 SET character_set_results = @saved_cs_results */ ;
759
/*!50003 SET collation_connection = @saved_col_connection */ ;
760
ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
761
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
762
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
763
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
764
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
765
/*!50003 SET character_set_client = utf8 */ ;
766
/*!50003 SET character_set_results = utf8 */ ;
767
/*!50003 SET collation_connection = utf8_general_ci */ ;
768
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
769
/*!50003 SET sql_mode = '' */ ;
771
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p2`(
772
INOUT парам1 CHAR(10) CHARACTER SET utf8,
773
OUT парам2 CHAR(10) CHARACTER SET utf8)
775
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
777
COLLATION(перем1) AS c1,
778
COLLATION(парам1) AS c2,
779
COLLATION(парам2) AS c3;
781
COLLATION('текст') AS c4,
782
COLLATION(_utf8 'текст') AS c5,
783
COLLATION(_koi8r '�����') AS c6,
784
@@collation_connection AS c7,
785
@@character_set_client AS c8;
790
/*!50003 SET sql_mode = @saved_sql_mode */ ;
791
/*!50003 SET character_set_client = @saved_cs_client */ ;
792
/*!50003 SET character_set_results = @saved_cs_results */ ;
793
/*!50003 SET collation_connection = @saved_col_connection */ ;
794
ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
796
---> Dumping mysqltest1 to ddl_i18n_utf8sp.mysqltest1.sql
798
---> Dump of mysqltest2
800
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
803
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
804
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
805
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
806
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
807
/*!50003 SET character_set_client = utf8 */ ;
808
/*!50003 SET character_set_results = utf8 */ ;
809
/*!50003 SET collation_connection = utf8_general_ci */ ;
810
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
811
/*!50003 SET sql_mode = '' */ ;
813
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p3`(
814
INOUT парам1 CHAR(10),
817
DECLARE перем1 CHAR(10);
819
COLLATION(перем1) AS c1,
820
COLLATION(парам1) AS c2,
821
COLLATION(парам2) AS c3;
823
COLLATION('текст') AS c4,
824
COLLATION(_utf8 'текст') AS c5,
825
COLLATION(_koi8r '�����') AS c6,
826
@@collation_connection AS c7,
827
@@character_set_client AS c8;
832
/*!50003 SET sql_mode = @saved_sql_mode */ ;
833
/*!50003 SET character_set_client = @saved_cs_client */ ;
834
/*!50003 SET character_set_results = @saved_cs_results */ ;
835
/*!50003 SET collation_connection = @saved_col_connection */ ;
836
ALTER DATABASE mysqltest2 CHARACTER SET cp866 COLLATE cp866_general_ci ;
837
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
838
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
839
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
840
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
841
/*!50003 SET character_set_client = utf8 */ ;
842
/*!50003 SET character_set_results = utf8 */ ;
843
/*!50003 SET collation_connection = utf8_general_ci */ ;
844
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
845
/*!50003 SET sql_mode = '' */ ;
847
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p4`(
848
INOUT парам1 CHAR(10) CHARACTER SET utf8,
849
OUT парам2 CHAR(10) CHARACTER SET utf8)
851
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
853
COLLATION(перем1) AS c1,
854
COLLATION(парам1) AS c2,
855
COLLATION(парам2) AS c3;
857
COLLATION('текст') AS c4,
858
COLLATION(_utf8 'текст') AS c5,
859
COLLATION(_koi8r '�����') AS c6,
860
@@collation_connection AS c7,
861
@@character_set_client AS c8;
866
/*!50003 SET sql_mode = @saved_sql_mode */ ;
867
/*!50003 SET character_set_client = @saved_cs_client */ ;
868
/*!50003 SET character_set_results = @saved_cs_results */ ;
869
/*!50003 SET collation_connection = @saved_col_connection */ ;
870
ALTER DATABASE mysqltest2 CHARACTER SET cp866 COLLATE cp866_general_ci ;
872
---> Dumping mysqltest2 to ddl_i18n_utf8sp.mysqltest2.sql
875
DROP DATABASE mysqltest1|
876
DROP DATABASE mysqltest2|
879
---> Restoring mysqltest1...
880
---> Restoring mysqltest2...
882
---> connection: con3
883
SET @@character_set_client= cp1251|
884
SET @@character_set_results= cp1251|
885
SET @@collation_connection= cp1251_general_ci|
888
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
890
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
893
utf8_general_ci utf8_general_ci utf8_general_ci
895
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
896
CALL mysqltest2.p3(@a, @b)|
898
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
900
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
901
CALL mysqltest2.p4(@a, @b)|
903
utf8_general_ci utf8_general_ci utf8_general_ci
905
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
909
SHOW CREATE PROCEDURE p1|
910
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
911
p1 CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
912
INOUT парам1 CHAR(10),
915
DECLARE перем1 CHAR(10);
917
COLLATION(перем1) AS c1,
918
COLLATION(парам1) AS c2,
919
COLLATION(парам2) AS c3;
921
COLLATION('текст') AS c4,
922
COLLATION(_utf8 'текст') AS c5,
923
COLLATION(_koi8r '�����') AS c6,
924
@@collation_connection AS c7,
925
@@character_set_client AS c8;
928
END utf8 utf8_general_ci utf8_unicode_ci
930
SHOW CREATE PROCEDURE p2|
931
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
932
p2 CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
933
INOUT парам1 CHAR(10) CHARACTER SET utf8,
934
OUT парам2 CHAR(10) CHARACTER SET utf8)
936
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
938
COLLATION(перем1) AS c1,
939
COLLATION(парам1) AS c2,
940
COLLATION(парам2) AS c3;
942
COLLATION('текст') AS c4,
943
COLLATION(_utf8 'текст') AS c5,
944
COLLATION(_koi8r '�����') AS c6,
945
@@collation_connection AS c7,
946
@@character_set_client AS c8;
949
END utf8 utf8_general_ci utf8_unicode_ci
951
SHOW CREATE PROCEDURE mysqltest2.p3|
952
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
953
p3 CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
954
INOUT парам1 CHAR(10),
957
DECLARE перем1 CHAR(10);
959
COLLATION(перем1) AS c1,
960
COLLATION(парам1) AS c2,
961
COLLATION(парам2) AS c3;
963
COLLATION('текст') AS c4,
964
COLLATION(_utf8 'текст') AS c5,
965
COLLATION(_koi8r '�����') AS c6,
966
@@collation_connection AS c7,
967
@@character_set_client AS c8;
970
END utf8 utf8_general_ci utf8_unicode_ci
972
SHOW CREATE PROCEDURE mysqltest2.p4|
973
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
974
p4 CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
975
INOUT парам1 CHAR(10) CHARACTER SET utf8,
976
OUT парам2 CHAR(10) CHARACTER SET utf8)
978
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
980
COLLATION(перем1) AS c1,
981
COLLATION(парам1) AS c2,
982
COLLATION(парам2) AS c3;
984
COLLATION('текст') AS c4,
985
COLLATION(_utf8 'текст') AS c5,
986
COLLATION(_koi8r '�����') AS c6,
987
@@collation_connection AS c7,
988
@@character_set_client AS c8;
991
END utf8 utf8_general_ci utf8_unicode_ci
994
SHOW PROCEDURE STATUS LIKE 'p1'|
995
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
996
mysqltest1 p1 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
998
SHOW PROCEDURE STATUS LIKE 'p2'|
999
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
1000
mysqltest1 p2 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
1002
SHOW PROCEDURE STATUS LIKE 'p3'|
1003
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
1004
mysqltest2 p3 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
1006
SHOW PROCEDURE STATUS LIKE 'p4'|
1007
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
1008
mysqltest2 p4 PROCEDURE root@localhost MODIFIED CREATED DEFINER utf8 utf8_general_ci utf8_unicode_ci
1011
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
1012
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1013
p1 NULL mysqltest1 p1 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
1014
DECLARE перем1 CHAR(10);
1016
COLLATION(перем1) AS c1,
1017
COLLATION(парам1) AS c2,
1018
COLLATION(парам2) AS c3;
1020
COLLATION('текст') AS c4,
1021
COLLATION( 'текст') AS c5,
1022
COLLATION( 'текст') AS c6,
1023
@@collation_connection AS c7,
1024
@@character_set_client AS c8;
1027
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1029
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
1030
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1031
p2 NULL mysqltest1 p2 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
1032
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1034
COLLATION(перем1) AS c1,
1035
COLLATION(парам1) AS c2,
1036
COLLATION(парам2) AS c3;
1038
COLLATION('текст') AS c4,
1039
COLLATION( 'текст') AS c5,
1040
COLLATION( 'текст') AS c6,
1041
@@collation_connection AS c7,
1042
@@character_set_client AS c8;
1045
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1047
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
1048
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1049
p3 NULL mysqltest2 p3 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
1050
DECLARE перем1 CHAR(10);
1052
COLLATION(перем1) AS c1,
1053
COLLATION(парам1) AS c2,
1054
COLLATION(парам2) AS c3;
1056
COLLATION('текст') AS c4,
1057
COLLATION( 'текст') AS c5,
1058
COLLATION( 'текст') AS c6,
1059
@@collation_connection AS c7,
1060
@@character_set_client AS c8;
1063
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1065
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
1066
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1067
p4 NULL mysqltest2 p4 PROCEDURE NULL NULL NULL NULL NULL NULL NULL SQL BEGIN
1068
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1070
COLLATION(перем1) AS c1,
1071
COLLATION(парам1) AS c2,
1072
COLLATION(парам2) AS c3;
1074
COLLATION('текст') AS c4,
1075
COLLATION( 'текст') AS c5,
1076
COLLATION( 'текст') AS c6,
1077
@@collation_connection AS c7,
1078
@@character_set_client AS c8;
1081
END NULL NULL SQL NO CONTAINS SQL NULL DEFINER CREATED ALTERED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1090
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
1092
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
1093
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
1095
utf8_unicode_ci utf8_unicode_ci
1099
utf8_general_ci utf8_general_ci utf8_general_ci
1101
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
1102
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
1104
utf8_general_ci utf8_general_ci
1106
CALL mysqltest2.p3(@a, @b)|
1108
utf8_unicode_ci utf8_unicode_ci utf8_unicode_ci
1110
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
1111
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
1113
utf8_unicode_ci utf8_unicode_ci
1115
CALL mysqltest2.p4(@a, @b)|
1117
utf8_general_ci utf8_general_ci utf8_general_ci
1119
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8
1120
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
1122
utf8_general_ci utf8_general_ci
1124
---> connection: default
1126
DROP DATABASE mysqltest1|
1127
DROP DATABASE mysqltest2|
1129
-------------------------------------------------------------------
1131
-------------------------------------------------------------------
1133
DROP DATABASE IF EXISTS mysqltest1|
1134
DROP DATABASE IF EXISTS mysqltest2|
1135
CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
1136
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
1138
CREATE TABLE t1(c INT)|
1139
CREATE TABLE mysqltest2.t1(c INT)|
1140
CREATE TABLE log(msg VARCHAR(255))|
1141
CREATE TABLE mysqltest2.log(msg VARCHAR(255))|
1143
CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
1145
DECLARE перем1 CHAR(10);
1146
INSERT INTO log VALUES(COLLATION(перем1));
1147
INSERT INTO log VALUES(COLLATION('текст'));
1148
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1149
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1150
INSERT INTO log VALUES(@@collation_connection);
1151
INSERT INTO log VALUES(@@character_set_client);
1153
SET @a2 = _utf8 'текст';
1154
SET @a3 = _koi8r '�����';
1157
CREATE TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
1159
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1160
INSERT INTO log VALUES(COLLATION(перем1));
1161
INSERT INTO log VALUES(COLLATION('текст'));
1162
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1163
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1164
INSERT INTO log VALUES(@@collation_connection);
1165
INSERT INTO log VALUES(@@character_set_client);
1167
SET @b2 = _utf8 'текст';
1168
SET @b3 = _koi8r '�����';
1171
CREATE TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
1173
DECLARE перем1 CHAR(10);
1174
INSERT INTO log VALUES(COLLATION(перем1));
1175
INSERT INTO log VALUES(COLLATION('текст'));
1176
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1177
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1178
INSERT INTO log VALUES(@@collation_connection);
1179
INSERT INTO log VALUES(@@character_set_client);
1181
SET @a2 = _utf8 'текст';
1182
SET @a3 = _koi8r '�����';
1185
CREATE TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
1187
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1188
INSERT INTO log VALUES(COLLATION(перем1));
1189
INSERT INTO log VALUES(COLLATION('текст'));
1190
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1191
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1192
INSERT INTO log VALUES(@@collation_connection);
1193
INSERT INTO log VALUES(@@character_set_client);
1195
SET @b2 = _utf8 'текст';
1196
SET @b3 = _koi8r '�����';
1201
SHOW CREATE TRIGGER trg1|
1202
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1203
trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
1205
DECLARE перем1 CHAR(10);
1206
INSERT INTO log VALUES(COLLATION(перем1));
1207
INSERT INTO log VALUES(COLLATION('текст'));
1208
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1209
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1210
INSERT INTO log VALUES(@@collation_connection);
1211
INSERT INTO log VALUES(@@character_set_client);
1213
SET @a2 = _utf8 'текст';
1214
SET @a3 = _koi8r '�����';
1215
END utf8 utf8_general_ci utf8_unicode_ci
1217
SHOW CREATE TRIGGER trg2|
1218
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1219
trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
1221
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1222
INSERT INTO log VALUES(COLLATION(перем1));
1223
INSERT INTO log VALUES(COLLATION('текст'));
1224
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1225
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1226
INSERT INTO log VALUES(@@collation_connection);
1227
INSERT INTO log VALUES(@@character_set_client);
1229
SET @b2 = _utf8 'текст';
1230
SET @b3 = _koi8r '�����';
1231
END utf8 utf8_general_ci utf8_unicode_ci
1233
SHOW CREATE TRIGGER mysqltest2.trg3|
1234
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1235
trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
1237
DECLARE перем1 CHAR(10);
1238
INSERT INTO log VALUES(COLLATION(перем1));
1239
INSERT INTO log VALUES(COLLATION('текст'));
1240
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1241
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1242
INSERT INTO log VALUES(@@collation_connection);
1243
INSERT INTO log VALUES(@@character_set_client);
1245
SET @a2 = _utf8 'текст';
1246
SET @a3 = _koi8r '�����';
1247
END utf8 utf8_general_ci utf8_unicode_ci
1249
SHOW CREATE TRIGGER mysqltest2.trg4|
1250
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1251
trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
1253
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1254
INSERT INTO log VALUES(COLLATION(перем1));
1255
INSERT INTO log VALUES(COLLATION('текст'));
1256
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1257
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1258
INSERT INTO log VALUES(@@collation_connection);
1259
INSERT INTO log VALUES(@@character_set_client);
1261
SET @b2 = _utf8 'текст';
1262
SET @b3 = _koi8r '�����';
1263
END utf8 utf8_general_ci utf8_unicode_ci
1267
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
1268
trg1 INSERT t1 BEGIN
1269
DECLARE перем1 CHAR(10);
1270
INSERT INTO log VALUES(COLLATION(перем1));
1271
INSERT INTO log VALUES(COLLATION('текст'));
1272
INSERT INTO log VALUES(COLLATION( 'текст'));
1273
INSERT INTO log VALUES(COLLATION( 'текст'));
1274
INSERT INTO log VALUES(@@collation_connection);
1275
INSERT INTO log VALUES(@@character_set_client);
1279
END BEFORE NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1280
trg2 INSERT t1 BEGIN
1281
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1282
INSERT INTO log VALUES(COLLATION(перем1));
1283
INSERT INTO log VALUES(COLLATION('текст'));
1284
INSERT INTO log VALUES(COLLATION( 'текст'));
1285
INSERT INTO log VALUES(COLLATION( 'текст'));
1286
INSERT INTO log VALUES(@@collation_connection);
1287
INSERT INTO log VALUES(@@character_set_client);
1291
END AFTER NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1296
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
1297
trg3 INSERT t1 BEGIN
1298
DECLARE перем1 CHAR(10);
1299
INSERT INTO log VALUES(COLLATION(перем1));
1300
INSERT INTO log VALUES(COLLATION('текст'));
1301
INSERT INTO log VALUES(COLLATION( 'текст'));
1302
INSERT INTO log VALUES(COLLATION( 'текст'));
1303
INSERT INTO log VALUES(@@collation_connection);
1304
INSERT INTO log VALUES(@@character_set_client);
1308
END BEFORE NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1309
trg4 INSERT t1 BEGIN
1310
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1311
INSERT INTO log VALUES(COLLATION(перем1));
1312
INSERT INTO log VALUES(COLLATION('текст'));
1313
INSERT INTO log VALUES(COLLATION( 'текст'));
1314
INSERT INTO log VALUES(COLLATION( 'текст'));
1315
INSERT INTO log VALUES(@@collation_connection);
1316
INSERT INTO log VALUES(@@character_set_client);
1320
END AFTER NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1324
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
1325
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1326
NULL mysqltest1 trg1 INSERT NULL mysqltest1 t1 0 NULL BEGIN
1327
DECLARE перем1 CHAR(10);
1328
INSERT INTO log VALUES(COLLATION(перем1));
1329
INSERT INTO log VALUES(COLLATION('текст'));
1330
INSERT INTO log VALUES(COLLATION( 'текст'));
1331
INSERT INTO log VALUES(COLLATION( 'текст'));
1332
INSERT INTO log VALUES(@@collation_connection);
1333
INSERT INTO log VALUES(@@character_set_client);
1337
END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1339
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
1340
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1341
NULL mysqltest1 trg2 INSERT NULL mysqltest1 t1 0 NULL BEGIN
1342
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1343
INSERT INTO log VALUES(COLLATION(перем1));
1344
INSERT INTO log VALUES(COLLATION('текст'));
1345
INSERT INTO log VALUES(COLLATION( 'текст'));
1346
INSERT INTO log VALUES(COLLATION( 'текст'));
1347
INSERT INTO log VALUES(@@collation_connection);
1348
INSERT INTO log VALUES(@@character_set_client);
1352
END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1354
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
1355
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1356
NULL mysqltest2 trg3 INSERT NULL mysqltest2 t1 0 NULL BEGIN
1357
DECLARE перем1 CHAR(10);
1358
INSERT INTO log VALUES(COLLATION(перем1));
1359
INSERT INTO log VALUES(COLLATION('текст'));
1360
INSERT INTO log VALUES(COLLATION( 'текст'));
1361
INSERT INTO log VALUES(COLLATION( 'текст'));
1362
INSERT INTO log VALUES(@@collation_connection);
1363
INSERT INTO log VALUES(@@character_set_client);
1367
END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1369
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
1370
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1371
NULL mysqltest2 trg4 INSERT NULL mysqltest2 t1 0 NULL BEGIN
1372
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1373
INSERT INTO log VALUES(COLLATION(перем1));
1374
INSERT INTO log VALUES(COLLATION('текст'));
1375
INSERT INTO log VALUES(COLLATION( 'текст'));
1376
INSERT INTO log VALUES(COLLATION( 'текст'));
1377
INSERT INTO log VALUES(@@collation_connection);
1378
INSERT INTO log VALUES(@@character_set_client);
1382
END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1393
INSERT INTO t1 VALUES(1)|
1396
SELECT msg FROM log|
1412
COLLATION(@a1) AS ca1,
1413
COLLATION(@a2) AS ca2,
1414
COLLATION(@a3) AS ca3,
1415
COLLATION(@b1) AS cb1,
1416
COLLATION(@b2) AS cb2,
1417
COLLATION(@b3) AS cb3|
1418
ca1 ca2 ca3 cb1 cb2 cb3
1419
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
1424
INSERT INTO mysqltest2.t1 VALUES(1)|
1427
SELECT msg FROM mysqltest2.log|
1443
COLLATION(@a1) AS ca1,
1444
COLLATION(@a2) AS ca2,
1445
COLLATION(@a3) AS ca3,
1446
COLLATION(@b1) AS cb1,
1447
COLLATION(@b2) AS cb2,
1448
COLLATION(@b3) AS cb3|
1449
ca1 ca2 ca3 cb1 cb2 cb3
1450
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
1452
DELETE FROM mysqltest2.log|
1455
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
1456
ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
1457
ALTER TABLE t1 ADD COLUMN fake INT|
1458
ALTER TABLE t1 DROP COLUMN fake|
1459
ALTER TABLE mysqltest2.t1 ADD COLUMN fake INT|
1460
ALTER TABLE mysqltest2.t1 DROP COLUMN fake|
1462
---> connection: con2
1463
SET @@character_set_client= cp1251|
1464
SET @@character_set_results= cp1251|
1465
SET @@collation_connection= cp1251_general_ci|
1466
INSERT INTO mysqltest1.t1 VALUES(0)|
1467
INSERT INTO mysqltest2.t1 VALUES(0)|
1468
DELETE FROM mysqltest1.log|
1469
DELETE FROM mysqltest2.log|
1474
SHOW CREATE TRIGGER trg1|
1475
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1476
trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
1478
DECLARE перем1 CHAR(10);
1479
INSERT INTO log VALUES(COLLATION(перем1));
1480
INSERT INTO log VALUES(COLLATION('текст'));
1481
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1482
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1483
INSERT INTO log VALUES(@@collation_connection);
1484
INSERT INTO log VALUES(@@character_set_client);
1486
SET @a2 = _utf8 'текст';
1487
SET @a3 = _koi8r '�����';
1488
END utf8 utf8_general_ci utf8_unicode_ci
1490
SHOW CREATE TRIGGER trg2|
1491
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1492
trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
1494
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1495
INSERT INTO log VALUES(COLLATION(перем1));
1496
INSERT INTO log VALUES(COLLATION('текст'));
1497
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1498
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1499
INSERT INTO log VALUES(@@collation_connection);
1500
INSERT INTO log VALUES(@@character_set_client);
1502
SET @b2 = _utf8 'текст';
1503
SET @b3 = _koi8r '�����';
1504
END utf8 utf8_general_ci utf8_unicode_ci
1506
SHOW CREATE TRIGGER mysqltest2.trg3|
1507
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1508
trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
1510
DECLARE перем1 CHAR(10);
1511
INSERT INTO log VALUES(COLLATION(перем1));
1512
INSERT INTO log VALUES(COLLATION('текст'));
1513
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1514
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1515
INSERT INTO log VALUES(@@collation_connection);
1516
INSERT INTO log VALUES(@@character_set_client);
1518
SET @a2 = _utf8 'текст';
1519
SET @a3 = _koi8r '�����';
1520
END utf8 utf8_general_ci utf8_unicode_ci
1522
SHOW CREATE TRIGGER mysqltest2.trg4|
1523
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1524
trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
1526
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1527
INSERT INTO log VALUES(COLLATION(перем1));
1528
INSERT INTO log VALUES(COLLATION('текст'));
1529
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1530
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1531
INSERT INTO log VALUES(@@collation_connection);
1532
INSERT INTO log VALUES(@@character_set_client);
1534
SET @b2 = _utf8 'текст';
1535
SET @b3 = _koi8r '�����';
1536
END utf8 utf8_general_ci utf8_unicode_ci
1540
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
1541
trg1 INSERT t1 BEGIN
1542
DECLARE перем1 CHAR(10);
1543
INSERT INTO log VALUES(COLLATION(перем1));
1544
INSERT INTO log VALUES(COLLATION('текст'));
1545
INSERT INTO log VALUES(COLLATION( 'текст'));
1546
INSERT INTO log VALUES(COLLATION( 'текст'));
1547
INSERT INTO log VALUES(@@collation_connection);
1548
INSERT INTO log VALUES(@@character_set_client);
1552
END BEFORE NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1553
trg2 INSERT t1 BEGIN
1554
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1555
INSERT INTO log VALUES(COLLATION(перем1));
1556
INSERT INTO log VALUES(COLLATION('текст'));
1557
INSERT INTO log VALUES(COLLATION( 'текст'));
1558
INSERT INTO log VALUES(COLLATION( 'текст'));
1559
INSERT INTO log VALUES(@@collation_connection);
1560
INSERT INTO log VALUES(@@character_set_client);
1564
END AFTER NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1569
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
1570
trg3 INSERT t1 BEGIN
1571
DECLARE перем1 CHAR(10);
1572
INSERT INTO log VALUES(COLLATION(перем1));
1573
INSERT INTO log VALUES(COLLATION('текст'));
1574
INSERT INTO log VALUES(COLLATION( 'текст'));
1575
INSERT INTO log VALUES(COLLATION( 'текст'));
1576
INSERT INTO log VALUES(@@collation_connection);
1577
INSERT INTO log VALUES(@@character_set_client);
1581
END BEFORE NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1582
trg4 INSERT t1 BEGIN
1583
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1584
INSERT INTO log VALUES(COLLATION(перем1));
1585
INSERT INTO log VALUES(COLLATION('текст'));
1586
INSERT INTO log VALUES(COLLATION( 'текст'));
1587
INSERT INTO log VALUES(COLLATION( 'текст'));
1588
INSERT INTO log VALUES(@@collation_connection);
1589
INSERT INTO log VALUES(@@character_set_client);
1593
END AFTER NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1597
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
1598
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1599
NULL mysqltest1 trg1 INSERT NULL mysqltest1 t1 0 NULL BEGIN
1600
DECLARE перем1 CHAR(10);
1601
INSERT INTO log VALUES(COLLATION(перем1));
1602
INSERT INTO log VALUES(COLLATION('текст'));
1603
INSERT INTO log VALUES(COLLATION( 'текст'));
1604
INSERT INTO log VALUES(COLLATION( 'текст'));
1605
INSERT INTO log VALUES(@@collation_connection);
1606
INSERT INTO log VALUES(@@character_set_client);
1610
END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1612
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
1613
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1614
NULL mysqltest1 trg2 INSERT NULL mysqltest1 t1 0 NULL BEGIN
1615
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1616
INSERT INTO log VALUES(COLLATION(перем1));
1617
INSERT INTO log VALUES(COLLATION('текст'));
1618
INSERT INTO log VALUES(COLLATION( 'текст'));
1619
INSERT INTO log VALUES(COLLATION( 'текст'));
1620
INSERT INTO log VALUES(@@collation_connection);
1621
INSERT INTO log VALUES(@@character_set_client);
1625
END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1627
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
1628
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1629
NULL mysqltest2 trg3 INSERT NULL mysqltest2 t1 0 NULL BEGIN
1630
DECLARE перем1 CHAR(10);
1631
INSERT INTO log VALUES(COLLATION(перем1));
1632
INSERT INTO log VALUES(COLLATION('текст'));
1633
INSERT INTO log VALUES(COLLATION( 'текст'));
1634
INSERT INTO log VALUES(COLLATION( 'текст'));
1635
INSERT INTO log VALUES(@@collation_connection);
1636
INSERT INTO log VALUES(@@character_set_client);
1640
END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1642
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
1643
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
1644
NULL mysqltest2 trg4 INSERT NULL mysqltest2 t1 0 NULL BEGIN
1645
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1646
INSERT INTO log VALUES(COLLATION(перем1));
1647
INSERT INTO log VALUES(COLLATION('текст'));
1648
INSERT INTO log VALUES(COLLATION( 'текст'));
1649
INSERT INTO log VALUES(COLLATION( 'текст'));
1650
INSERT INTO log VALUES(@@collation_connection);
1651
INSERT INTO log VALUES(@@character_set_client);
1655
END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
1666
INSERT INTO t1 VALUES(1)|
1669
SELECT msg FROM log|
1685
COLLATION(@a1) AS ca1,
1686
COLLATION(@a2) AS ca2,
1687
COLLATION(@a3) AS ca3,
1688
COLLATION(@b1) AS cb1,
1689
COLLATION(@b2) AS cb2,
1690
COLLATION(@b3) AS cb3|
1691
ca1 ca2 ca3 cb1 cb2 cb3
1692
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
1697
INSERT INTO mysqltest2.t1 VALUES(1)|
1700
SELECT msg FROM mysqltest2.log|
1716
COLLATION(@a1) AS ca1,
1717
COLLATION(@a2) AS ca2,
1718
COLLATION(@a3) AS ca3,
1719
COLLATION(@b1) AS cb1,
1720
COLLATION(@b2) AS cb2,
1721
COLLATION(@b3) AS cb3|
1722
ca1 ca2 ca3 cb1 cb2 cb3
1723
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
1725
DELETE FROM mysqltest2.log|
1727
---> Dump of mysqltest1
1729
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
1732
SET @saved_cs_client = @@character_set_client;
1733
SET character_set_client = utf8;
1734
CREATE TABLE `log` (
1735
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
1736
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
1737
SET character_set_client = @saved_cs_client;
1738
SET @saved_cs_client = @@character_set_client;
1739
SET character_set_client = utf8;
1741
`c` int(11) DEFAULT NULL
1742
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
1743
SET character_set_client = @saved_cs_client;
1744
INSERT INTO `t1` VALUES (1),(0),(1);
1745
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
1746
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
1747
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
1748
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
1749
/*!50003 SET character_set_client = utf8 */ ;
1750
/*!50003 SET character_set_results = utf8 */ ;
1751
/*!50003 SET collation_connection = utf8_general_ci */ ;
1752
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
1753
/*!50003 SET sql_mode = '' */ ;
1755
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
1757
DECLARE перем1 CHAR(10);
1758
INSERT INTO log VALUES(COLLATION(перем1));
1759
INSERT INTO log VALUES(COLLATION('текст'));
1760
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1761
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1762
INSERT INTO log VALUES(@@collation_connection);
1763
INSERT INTO log VALUES(@@character_set_client);
1765
SET @a2 = _utf8 'текст';
1766
SET @a3 = _koi8r '�����';
1769
/*!50003 SET sql_mode = @saved_sql_mode */ ;
1770
/*!50003 SET character_set_client = @saved_cs_client */ ;
1771
/*!50003 SET character_set_results = @saved_cs_results */ ;
1772
/*!50003 SET collation_connection = @saved_col_connection */ ;
1773
ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
1774
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
1775
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
1776
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
1777
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
1778
/*!50003 SET character_set_client = utf8 */ ;
1779
/*!50003 SET character_set_results = utf8 */ ;
1780
/*!50003 SET collation_connection = utf8_general_ci */ ;
1781
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
1782
/*!50003 SET sql_mode = '' */ ;
1784
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
1786
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1787
INSERT INTO log VALUES(COLLATION(перем1));
1788
INSERT INTO log VALUES(COLLATION('текст'));
1789
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1790
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1791
INSERT INTO log VALUES(@@collation_connection);
1792
INSERT INTO log VALUES(@@character_set_client);
1794
SET @b2 = _utf8 'текст';
1795
SET @b3 = _koi8r '�����';
1798
/*!50003 SET sql_mode = @saved_sql_mode */ ;
1799
/*!50003 SET character_set_client = @saved_cs_client */ ;
1800
/*!50003 SET character_set_results = @saved_cs_results */ ;
1801
/*!50003 SET collation_connection = @saved_col_connection */ ;
1802
ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
1804
---> Dumping mysqltest1 to ddl_i18n_utf8triggers.mysqltest1.sql
1806
---> Dump of mysqltest2
1808
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
1811
SET @saved_cs_client = @@character_set_client;
1812
SET character_set_client = utf8;
1813
CREATE TABLE `log` (
1814
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
1815
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
1816
SET character_set_client = @saved_cs_client;
1817
SET @saved_cs_client = @@character_set_client;
1818
SET character_set_client = utf8;
1820
`c` int(11) DEFAULT NULL
1821
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
1822
SET character_set_client = @saved_cs_client;
1823
INSERT INTO `t1` VALUES (1),(0),(1);
1824
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
1825
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
1826
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
1827
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
1828
/*!50003 SET character_set_client = utf8 */ ;
1829
/*!50003 SET character_set_results = utf8 */ ;
1830
/*!50003 SET collation_connection = utf8_general_ci */ ;
1831
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
1832
/*!50003 SET sql_mode = '' */ ;
1834
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
1836
DECLARE перем1 CHAR(10);
1837
INSERT INTO log VALUES(COLLATION(перем1));
1838
INSERT INTO log VALUES(COLLATION('текст'));
1839
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1840
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1841
INSERT INTO log VALUES(@@collation_connection);
1842
INSERT INTO log VALUES(@@character_set_client);
1844
SET @a2 = _utf8 'текст';
1845
SET @a3 = _koi8r '�����';
1848
/*!50003 SET sql_mode = @saved_sql_mode */ ;
1849
/*!50003 SET character_set_client = @saved_cs_client */ ;
1850
/*!50003 SET character_set_results = @saved_cs_results */ ;
1851
/*!50003 SET collation_connection = @saved_col_connection */ ;
1852
ALTER DATABASE mysqltest2 CHARACTER SET cp866 COLLATE cp866_general_ci ;
1853
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
1854
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
1855
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
1856
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
1857
/*!50003 SET character_set_client = utf8 */ ;
1858
/*!50003 SET character_set_results = utf8 */ ;
1859
/*!50003 SET collation_connection = utf8_general_ci */ ;
1860
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
1861
/*!50003 SET sql_mode = '' */ ;
1863
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
1865
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1866
INSERT INTO log VALUES(COLLATION(перем1));
1867
INSERT INTO log VALUES(COLLATION('текст'));
1868
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1869
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1870
INSERT INTO log VALUES(@@collation_connection);
1871
INSERT INTO log VALUES(@@character_set_client);
1873
SET @b2 = _utf8 'текст';
1874
SET @b3 = _koi8r '�����';
1877
/*!50003 SET sql_mode = @saved_sql_mode */ ;
1878
/*!50003 SET character_set_client = @saved_cs_client */ ;
1879
/*!50003 SET character_set_results = @saved_cs_results */ ;
1880
/*!50003 SET collation_connection = @saved_col_connection */ ;
1881
ALTER DATABASE mysqltest2 CHARACTER SET cp866 COLLATE cp866_general_ci ;
1883
---> Dumping mysqltest2 to ddl_i18n_utf8triggers.mysqltest2.sql
1886
DROP DATABASE mysqltest1|
1887
DROP DATABASE mysqltest2|
1890
---> Restoring mysqltest1...
1891
---> Restoring mysqltest2...
1892
ALTER TABLE mysqltest1.t1 ADD COLUMN fake INT|
1893
ALTER TABLE mysqltest1.t1 DROP COLUMN fake|
1894
ALTER TABLE mysqltest2.t1 ADD COLUMN fake INT|
1895
ALTER TABLE mysqltest2.t1 DROP COLUMN fake|
1897
---> connection: con3
1898
SET @@character_set_client= cp1251|
1899
SET @@character_set_results= cp1251|
1900
SET @@collation_connection= cp1251_general_ci|
1901
INSERT INTO mysqltest1.t1 VALUES(0)|
1902
INSERT INTO mysqltest2.t1 VALUES(0)|
1903
DELETE FROM mysqltest1.log|
1904
DELETE FROM mysqltest2.log|
1909
SHOW CREATE TRIGGER trg1|
1910
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1911
trg1 CREATE DEFINER=`root`@`localhost` TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW
1913
DECLARE перем1 CHAR(10);
1914
INSERT INTO log VALUES(COLLATION(перем1));
1915
INSERT INTO log VALUES(COLLATION('текст'));
1916
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1917
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1918
INSERT INTO log VALUES(@@collation_connection);
1919
INSERT INTO log VALUES(@@character_set_client);
1921
SET @a2 = _utf8 'текст';
1922
SET @a3 = _koi8r '�����';
1923
END utf8 utf8_general_ci utf8_unicode_ci
1925
SHOW CREATE TRIGGER trg2|
1926
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1927
trg2 CREATE DEFINER=`root`@`localhost` TRIGGER trg2 AFTER INSERT ON t1 FOR EACH ROW
1929
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1930
INSERT INTO log VALUES(COLLATION(перем1));
1931
INSERT INTO log VALUES(COLLATION('текст'));
1932
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1933
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1934
INSERT INTO log VALUES(@@collation_connection);
1935
INSERT INTO log VALUES(@@character_set_client);
1937
SET @b2 = _utf8 'текст';
1938
SET @b3 = _koi8r '�����';
1939
END utf8 utf8_general_ci utf8_unicode_ci
1941
SHOW CREATE TRIGGER mysqltest2.trg3|
1942
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1943
trg3 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg3 BEFORE INSERT ON mysqltest2.t1 FOR EACH ROW
1945
DECLARE перем1 CHAR(10);
1946
INSERT INTO log VALUES(COLLATION(перем1));
1947
INSERT INTO log VALUES(COLLATION('текст'));
1948
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1949
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1950
INSERT INTO log VALUES(@@collation_connection);
1951
INSERT INTO log VALUES(@@character_set_client);
1953
SET @a2 = _utf8 'текст';
1954
SET @a3 = _koi8r '�����';
1955
END utf8 utf8_general_ci utf8_unicode_ci
1957
SHOW CREATE TRIGGER mysqltest2.trg4|
1958
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
1959
trg4 CREATE DEFINER=`root`@`localhost` TRIGGER mysqltest2.trg4 AFTER INSERT ON mysqltest2.t1 FOR EACH ROW
1961
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1962
INSERT INTO log VALUES(COLLATION(перем1));
1963
INSERT INTO log VALUES(COLLATION('текст'));
1964
INSERT INTO log VALUES(COLLATION(_utf8 'текст'));
1965
INSERT INTO log VALUES(COLLATION(_koi8r '�����'));
1966
INSERT INTO log VALUES(@@collation_connection);
1967
INSERT INTO log VALUES(@@character_set_client);
1969
SET @b2 = _utf8 'текст';
1970
SET @b3 = _koi8r '�����';
1971
END utf8 utf8_general_ci utf8_unicode_ci
1975
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
1976
trg1 INSERT t1 BEGIN
1977
DECLARE перем1 CHAR(10);
1978
INSERT INTO log VALUES(COLLATION(перем1));
1979
INSERT INTO log VALUES(COLLATION('текст'));
1980
INSERT INTO log VALUES(COLLATION( 'текст'));
1981
INSERT INTO log VALUES(COLLATION( 'текст'));
1982
INSERT INTO log VALUES(@@collation_connection);
1983
INSERT INTO log VALUES(@@character_set_client);
1987
END BEFORE NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
1988
trg2 INSERT t1 BEGIN
1989
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
1990
INSERT INTO log VALUES(COLLATION(перем1));
1991
INSERT INTO log VALUES(COLLATION('текст'));
1992
INSERT INTO log VALUES(COLLATION( 'текст'));
1993
INSERT INTO log VALUES(COLLATION( 'текст'));
1994
INSERT INTO log VALUES(@@collation_connection);
1995
INSERT INTO log VALUES(@@character_set_client);
1999
END AFTER NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
2004
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
2005
trg3 INSERT t1 BEGIN
2006
DECLARE перем1 CHAR(10);
2007
INSERT INTO log VALUES(COLLATION(перем1));
2008
INSERT INTO log VALUES(COLLATION('текст'));
2009
INSERT INTO log VALUES(COLLATION( 'текст'));
2010
INSERT INTO log VALUES(COLLATION( 'текст'));
2011
INSERT INTO log VALUES(@@collation_connection);
2012
INSERT INTO log VALUES(@@character_set_client);
2016
END BEFORE NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
2017
trg4 INSERT t1 BEGIN
2018
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2019
INSERT INTO log VALUES(COLLATION(перем1));
2020
INSERT INTO log VALUES(COLLATION('текст'));
2021
INSERT INTO log VALUES(COLLATION( 'текст'));
2022
INSERT INTO log VALUES(COLLATION( 'текст'));
2023
INSERT INTO log VALUES(@@collation_connection);
2024
INSERT INTO log VALUES(@@character_set_client);
2028
END AFTER NULL root@localhost utf8 utf8_general_ci utf8_unicode_ci
2032
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
2033
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2034
NULL mysqltest1 trg1 INSERT NULL mysqltest1 t1 0 NULL BEGIN
2035
DECLARE перем1 CHAR(10);
2036
INSERT INTO log VALUES(COLLATION(перем1));
2037
INSERT INTO log VALUES(COLLATION('текст'));
2038
INSERT INTO log VALUES(COLLATION( 'текст'));
2039
INSERT INTO log VALUES(COLLATION( 'текст'));
2040
INSERT INTO log VALUES(@@collation_connection);
2041
INSERT INTO log VALUES(@@character_set_client);
2045
END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
2047
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
2048
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2049
NULL mysqltest1 trg2 INSERT NULL mysqltest1 t1 0 NULL BEGIN
2050
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2051
INSERT INTO log VALUES(COLLATION(перем1));
2052
INSERT INTO log VALUES(COLLATION('текст'));
2053
INSERT INTO log VALUES(COLLATION( 'текст'));
2054
INSERT INTO log VALUES(COLLATION( 'текст'));
2055
INSERT INTO log VALUES(@@collation_connection);
2056
INSERT INTO log VALUES(@@character_set_client);
2060
END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
2062
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
2063
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2064
NULL mysqltest2 trg3 INSERT NULL mysqltest2 t1 0 NULL BEGIN
2065
DECLARE перем1 CHAR(10);
2066
INSERT INTO log VALUES(COLLATION(перем1));
2067
INSERT INTO log VALUES(COLLATION('текст'));
2068
INSERT INTO log VALUES(COLLATION( 'текст'));
2069
INSERT INTO log VALUES(COLLATION( 'текст'));
2070
INSERT INTO log VALUES(@@collation_connection);
2071
INSERT INTO log VALUES(@@character_set_client);
2075
END ROW BEFORE NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
2077
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
2078
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2079
NULL mysqltest2 trg4 INSERT NULL mysqltest2 t1 0 NULL BEGIN
2080
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2081
INSERT INTO log VALUES(COLLATION(перем1));
2082
INSERT INTO log VALUES(COLLATION('текст'));
2083
INSERT INTO log VALUES(COLLATION( 'текст'));
2084
INSERT INTO log VALUES(COLLATION( 'текст'));
2085
INSERT INTO log VALUES(@@collation_connection);
2086
INSERT INTO log VALUES(@@character_set_client);
2090
END ROW AFTER NULL NULL OLD NEW CREATED root@localhost utf8 utf8_general_ci utf8_unicode_ci
2101
INSERT INTO t1 VALUES(1)|
2104
SELECT msg FROM log|
2120
COLLATION(@a1) AS ca1,
2121
COLLATION(@a2) AS ca2,
2122
COLLATION(@a3) AS ca3,
2123
COLLATION(@b1) AS cb1,
2124
COLLATION(@b2) AS cb2,
2125
COLLATION(@b3) AS cb3|
2126
ca1 ca2 ca3 cb1 cb2 cb3
2127
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
2132
INSERT INTO mysqltest2.t1 VALUES(1)|
2135
SELECT msg FROM mysqltest2.log|
2151
COLLATION(@a1) AS ca1,
2152
COLLATION(@a2) AS ca2,
2153
COLLATION(@a3) AS ca3,
2154
COLLATION(@b1) AS cb1,
2155
COLLATION(@b2) AS cb2,
2156
COLLATION(@b3) AS cb3|
2157
ca1 ca2 ca3 cb1 cb2 cb3
2158
utf8_general_ci utf8_general_ci koi8r_general_ci utf8_general_ci utf8_general_ci koi8r_general_ci
2160
DELETE FROM mysqltest2.log|
2162
---> connection: default
2164
DROP DATABASE mysqltest1|
2165
DROP DATABASE mysqltest2|
2167
-------------------------------------------------------------------
2169
-------------------------------------------------------------------
2171
DROP DATABASE IF EXISTS mysqltest1|
2172
DROP DATABASE IF EXISTS mysqltest2|
2173
CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
2174
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
2177
CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO
2179
DECLARE перем1 CHAR(10);
2181
COLLATION(перем1) AS c1,
2182
COLLATION('текст') AS c2,
2183
COLLATION(_utf8 'текст') AS c3,
2184
COLLATION(_koi8r '�����') AS c4,
2185
@@collation_connection AS c5,
2186
@@character_set_client AS c6;
2189
CREATE EVENT ev2 ON SCHEDULE AT '2030-01-01 00:00:00' DO
2191
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2193
COLLATION(перем1) AS c1,
2194
COLLATION('текст') AS c2,
2195
COLLATION(_utf8 'текст') AS c3,
2196
COLLATION(_koi8r '�����') AS c4,
2197
@@collation_connection AS c5,
2198
@@character_set_client AS c6;
2201
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '2030-01-01 00:00:00' DO
2203
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2205
COLLATION(перем1) AS c1,
2206
COLLATION('текст') AS c2,
2207
COLLATION(_utf8 'текст') AS c3,
2208
COLLATION(_koi8r '�����') AS c4,
2209
@@collation_connection AS c5,
2210
@@character_set_client AS c6;
2213
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '2030-01-01 00:00:00' DO
2215
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2217
COLLATION(перем1) AS c1,
2218
COLLATION('текст') AS c2,
2219
COLLATION(_utf8 'текст') AS c3,
2220
COLLATION(_koi8r '�����') AS c4,
2221
@@collation_connection AS c5,
2222
@@character_set_client AS c6;
2227
SHOW CREATE EVENT ev1|
2228
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2229
ev1 SYSTEM CREATE EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2230
DECLARE перем1 CHAR(10);
2232
COLLATION(перем1) AS c1,
2233
COLLATION('текст') AS c2,
2234
COLLATION(_utf8 'текст') AS c3,
2235
COLLATION(_koi8r '�����') AS c4,
2236
@@collation_connection AS c5,
2237
@@character_set_client AS c6;
2238
END utf8 utf8_general_ci utf8_unicode_ci
2240
SHOW CREATE EVENT ev2|
2241
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2242
ev2 SYSTEM CREATE EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2243
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2245
COLLATION(перем1) AS c1,
2246
COLLATION('текст') AS c2,
2247
COLLATION(_utf8 'текст') AS c3,
2248
COLLATION(_koi8r '�����') AS c4,
2249
@@collation_connection AS c5,
2250
@@character_set_client AS c6;
2251
END utf8 utf8_general_ci utf8_unicode_ci
2253
SHOW CREATE EVENT mysqltest2.ev3|
2254
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2255
ev3 SYSTEM CREATE EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2256
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2258
COLLATION(перем1) AS c1,
2259
COLLATION('текст') AS c2,
2260
COLLATION(_utf8 'текст') AS c3,
2261
COLLATION(_koi8r '�����') AS c4,
2262
@@collation_connection AS c5,
2263
@@character_set_client AS c6;
2264
END utf8 utf8_general_ci utf8_unicode_ci
2266
SHOW CREATE EVENT mysqltest2.ev3|
2267
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2268
ev3 SYSTEM CREATE EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2269
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2271
COLLATION(перем1) AS c1,
2272
COLLATION('текст') AS c2,
2273
COLLATION(_utf8 'текст') AS c3,
2274
COLLATION(_koi8r '�����') AS c4,
2275
@@collation_connection AS c5,
2276
@@character_set_client AS c6;
2277
END utf8 utf8_general_ci utf8_unicode_ci
2280
SHOW EVENTS LIKE 'ev1'|
2281
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2282
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
2284
SHOW EVENTS LIKE 'ev2'|
2285
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2286
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
2288
SHOW EVENTS LIKE 'ev3'|
2289
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2291
SHOW EVENTS LIKE 'ev4'|
2292
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2295
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
2296
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2297
NULL mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
2298
DECLARE перем1 CHAR(10);
2300
COLLATION(перем1) AS c1,
2301
COLLATION('текст') AS c2,
2302
COLLATION( 'текст') AS c3,
2303
COLLATION( 'текст') AS c4,
2304
@@collation_connection AS c5,
2305
@@character_set_client AS c6;
2306
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2308
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
2309
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2310
NULL mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
2311
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2313
COLLATION(перем1) AS c1,
2314
COLLATION('текст') AS c2,
2315
COLLATION( 'текст') AS c3,
2316
COLLATION( 'текст') AS c4,
2317
@@collation_connection AS c5,
2318
@@character_set_client AS c6;
2319
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2321
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
2322
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2323
NULL mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
2324
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2326
COLLATION(перем1) AS c1,
2327
COLLATION('текст') AS c2,
2328
COLLATION( 'текст') AS c3,
2329
COLLATION( 'текст') AS c4,
2330
@@collation_connection AS c5,
2331
@@character_set_client AS c6;
2332
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2334
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
2335
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2336
NULL mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
2337
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2339
COLLATION(перем1) AS c1,
2340
COLLATION('текст') AS c2,
2341
COLLATION( 'текст') AS c3,
2342
COLLATION( 'текст') AS c4,
2343
@@collation_connection AS c5,
2344
@@character_set_client AS c6;
2345
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2348
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
2349
ALTER DATABASE mysqltest2 COLLATE cp866_general_ci|
2351
---> connection: con2
2352
SET @@character_set_client= cp1251|
2353
SET @@character_set_results= cp1251|
2354
SET @@collation_connection= cp1251_general_ci|
2355
SHOW CREATE EVENT ev1|
2356
SHOW CREATE EVENT ev2|
2357
SHOW CREATE EVENT mysqltest2.ev3|
2358
SHOW CREATE EVENT mysqltest2.ev4|
2362
SHOW CREATE EVENT ev1|
2363
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2364
ev1 SYSTEM CREATE EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2365
DECLARE перем1 CHAR(10);
2367
COLLATION(перем1) AS c1,
2368
COLLATION('текст') AS c2,
2369
COLLATION(_utf8 'текст') AS c3,
2370
COLLATION(_koi8r '�����') AS c4,
2371
@@collation_connection AS c5,
2372
@@character_set_client AS c6;
2373
END utf8 utf8_general_ci utf8_unicode_ci
2375
SHOW CREATE EVENT ev2|
2376
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2377
ev2 SYSTEM CREATE EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2378
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2380
COLLATION(перем1) AS c1,
2381
COLLATION('текст') AS c2,
2382
COLLATION(_utf8 'текст') AS c3,
2383
COLLATION(_koi8r '�����') AS c4,
2384
@@collation_connection AS c5,
2385
@@character_set_client AS c6;
2386
END utf8 utf8_general_ci utf8_unicode_ci
2388
SHOW CREATE EVENT mysqltest2.ev3|
2389
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2390
ev3 SYSTEM CREATE EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2391
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2393
COLLATION(перем1) AS c1,
2394
COLLATION('текст') AS c2,
2395
COLLATION(_utf8 'текст') AS c3,
2396
COLLATION(_koi8r '�����') AS c4,
2397
@@collation_connection AS c5,
2398
@@character_set_client AS c6;
2399
END utf8 utf8_general_ci utf8_unicode_ci
2401
SHOW CREATE EVENT mysqltest2.ev3|
2402
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2403
ev3 SYSTEM CREATE EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2404
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2406
COLLATION(перем1) AS c1,
2407
COLLATION('текст') AS c2,
2408
COLLATION(_utf8 'текст') AS c3,
2409
COLLATION(_koi8r '�����') AS c4,
2410
@@collation_connection AS c5,
2411
@@character_set_client AS c6;
2412
END utf8 utf8_general_ci utf8_unicode_ci
2415
SHOW EVENTS LIKE 'ev1'|
2416
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2417
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
2419
SHOW EVENTS LIKE 'ev2'|
2420
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2421
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
2423
SHOW EVENTS LIKE 'ev3'|
2424
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2426
SHOW EVENTS LIKE 'ev4'|
2427
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2430
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
2431
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2432
NULL mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
2433
DECLARE перем1 CHAR(10);
2435
COLLATION(перем1) AS c1,
2436
COLLATION('текст') AS c2,
2437
COLLATION( 'текст') AS c3,
2438
COLLATION( 'текст') AS c4,
2439
@@collation_connection AS c5,
2440
@@character_set_client AS c6;
2441
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2443
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
2444
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2445
NULL mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
2446
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2448
COLLATION(перем1) AS c1,
2449
COLLATION('текст') AS c2,
2450
COLLATION( 'текст') AS c3,
2451
COLLATION( 'текст') AS c4,
2452
@@collation_connection AS c5,
2453
@@character_set_client AS c6;
2454
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2456
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
2457
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2458
NULL mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
2459
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2461
COLLATION(перем1) AS c1,
2462
COLLATION('текст') AS c2,
2463
COLLATION( 'текст') AS c3,
2464
COLLATION( 'текст') AS c4,
2465
@@collation_connection AS c5,
2466
@@character_set_client AS c6;
2467
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2469
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
2470
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2471
NULL mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
2472
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2474
COLLATION(перем1) AS c1,
2475
COLLATION('текст') AS c2,
2476
COLLATION( 'текст') AS c3,
2477
COLLATION( 'текст') AS c4,
2478
@@collation_connection AS c5,
2479
@@character_set_client AS c6;
2480
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2482
---> Dump of mysqltest1
2484
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
2487
/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;
2489
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
2490
/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
2491
/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
2492
/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
2493
/*!50003 SET character_set_client = utf8 */ ;;
2494
/*!50003 SET character_set_results = utf8 */ ;;
2495
/*!50003 SET collation_connection = utf8_general_ci */ ;;
2496
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
2497
/*!50003 SET sql_mode = '' */ ;;
2498
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
2499
/*!50003 SET time_zone = 'SYSTEM' */ ;;
2500
/*!50106 CREATE EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2501
DECLARE перем1 CHAR(10);
2503
COLLATION(перем1) AS c1,
2504
COLLATION('текст') AS c2,
2505
COLLATION(_utf8 'текст') AS c3,
2506
COLLATION(_koi8r '�����') AS c4,
2507
@@collation_connection AS c5,
2508
@@character_set_client AS c6;
2510
/*!50003 SET time_zone = @saved_time_zone */ ;;
2511
/*!50003 SET sql_mode = @saved_sql_mode */ ;;
2512
/*!50003 SET character_set_client = @saved_cs_client */ ;;
2513
/*!50003 SET character_set_results = @saved_cs_results */ ;;
2514
/*!50003 SET collation_connection = @saved_col_connection */ ;;
2515
ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;;
2517
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
2518
/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
2519
/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
2520
/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
2521
/*!50003 SET character_set_client = utf8 */ ;;
2522
/*!50003 SET character_set_results = utf8 */ ;;
2523
/*!50003 SET collation_connection = utf8_general_ci */ ;;
2524
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
2525
/*!50003 SET sql_mode = '' */ ;;
2526
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
2527
/*!50003 SET time_zone = 'SYSTEM' */ ;;
2528
/*!50106 CREATE EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2529
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2531
COLLATION(перем1) AS c1,
2532
COLLATION('текст') AS c2,
2533
COLLATION(_utf8 'текст') AS c3,
2534
COLLATION(_koi8r '�����') AS c4,
2535
@@collation_connection AS c5,
2536
@@character_set_client AS c6;
2538
/*!50003 SET time_zone = @saved_time_zone */ ;;
2539
/*!50003 SET sql_mode = @saved_sql_mode */ ;;
2540
/*!50003 SET character_set_client = @saved_cs_client */ ;;
2541
/*!50003 SET character_set_results = @saved_cs_results */ ;;
2542
/*!50003 SET collation_connection = @saved_col_connection */ ;;
2543
ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;;
2545
/*!50106 SET TIME_ZONE= @save_time_zone */ ;
2547
---> Dumping mysqltest1 to ddl_i18n_utf8events.mysqltest1.sql
2549
---> Dump of mysqltest2
2551
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
2554
/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;
2556
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
2557
/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
2558
/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
2559
/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
2560
/*!50003 SET character_set_client = utf8 */ ;;
2561
/*!50003 SET character_set_results = utf8 */ ;;
2562
/*!50003 SET collation_connection = utf8_general_ci */ ;;
2563
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
2564
/*!50003 SET sql_mode = '' */ ;;
2565
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
2566
/*!50003 SET time_zone = 'SYSTEM' */ ;;
2567
/*!50106 CREATE EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2568
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2570
COLLATION(перем1) AS c1,
2571
COLLATION('текст') AS c2,
2572
COLLATION(_utf8 'текст') AS c3,
2573
COLLATION(_koi8r '�����') AS c4,
2574
@@collation_connection AS c5,
2575
@@character_set_client AS c6;
2577
/*!50003 SET time_zone = @saved_time_zone */ ;;
2578
/*!50003 SET sql_mode = @saved_sql_mode */ ;;
2579
/*!50003 SET character_set_client = @saved_cs_client */ ;;
2580
/*!50003 SET character_set_results = @saved_cs_results */ ;;
2581
/*!50003 SET collation_connection = @saved_col_connection */ ;;
2582
ALTER DATABASE mysqltest2 CHARACTER SET cp866 COLLATE cp866_general_ci ;;
2584
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
2585
/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
2586
/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
2587
/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
2588
/*!50003 SET character_set_client = utf8 */ ;;
2589
/*!50003 SET character_set_results = utf8 */ ;;
2590
/*!50003 SET collation_connection = utf8_general_ci */ ;;
2591
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
2592
/*!50003 SET sql_mode = '' */ ;;
2593
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
2594
/*!50003 SET time_zone = 'SYSTEM' */ ;;
2595
/*!50106 CREATE EVENT `ev4` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2596
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2598
COLLATION(перем1) AS c1,
2599
COLLATION('текст') AS c2,
2600
COLLATION(_utf8 'текст') AS c3,
2601
COLLATION(_koi8r '�����') AS c4,
2602
@@collation_connection AS c5,
2603
@@character_set_client AS c6;
2605
/*!50003 SET time_zone = @saved_time_zone */ ;;
2606
/*!50003 SET sql_mode = @saved_sql_mode */ ;;
2607
/*!50003 SET character_set_client = @saved_cs_client */ ;;
2608
/*!50003 SET character_set_results = @saved_cs_results */ ;;
2609
/*!50003 SET collation_connection = @saved_col_connection */ ;;
2610
ALTER DATABASE mysqltest2 CHARACTER SET cp866 COLLATE cp866_general_ci ;;
2612
/*!50106 SET TIME_ZONE= @save_time_zone */ ;
2614
---> Dumping mysqltest2 to ddl_i18n_utf8events.mysqltest2.sql
2617
DROP DATABASE mysqltest1|
2618
DROP DATABASE mysqltest2|
2621
---> Restoring mysqltest1...
2622
---> Restoring mysqltest2...
2624
---> connection: con3
2625
SET @@character_set_client= cp1251|
2626
SET @@character_set_results= cp1251|
2627
SET @@collation_connection= cp1251_general_ci|
2628
SHOW CREATE EVENT ev1|
2629
SHOW CREATE EVENT ev2|
2630
SHOW CREATE EVENT mysqltest2.ev3|
2631
SHOW CREATE EVENT mysqltest2.ev4|
2635
SHOW CREATE EVENT ev1|
2636
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2637
ev1 SYSTEM CREATE EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2638
DECLARE перем1 CHAR(10);
2640
COLLATION(перем1) AS c1,
2641
COLLATION('текст') AS c2,
2642
COLLATION(_utf8 'текст') AS c3,
2643
COLLATION(_koi8r '�����') AS c4,
2644
@@collation_connection AS c5,
2645
@@character_set_client AS c6;
2646
END utf8 utf8_general_ci utf8_unicode_ci
2648
SHOW CREATE EVENT ev2|
2649
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2650
ev2 SYSTEM CREATE EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2651
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2653
COLLATION(перем1) AS c1,
2654
COLLATION('текст') AS c2,
2655
COLLATION(_utf8 'текст') AS c3,
2656
COLLATION(_koi8r '�����') AS c4,
2657
@@collation_connection AS c5,
2658
@@character_set_client AS c6;
2659
END utf8 utf8_general_ci utf8_unicode_ci
2661
SHOW CREATE EVENT mysqltest2.ev3|
2662
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2663
ev3 SYSTEM CREATE EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2664
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2666
COLLATION(перем1) AS c1,
2667
COLLATION('текст') AS c2,
2668
COLLATION(_utf8 'текст') AS c3,
2669
COLLATION(_koi8r '�����') AS c4,
2670
@@collation_connection AS c5,
2671
@@character_set_client AS c6;
2672
END utf8 utf8_general_ci utf8_unicode_ci
2674
SHOW CREATE EVENT mysqltest2.ev3|
2675
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
2676
ev3 SYSTEM CREATE EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
2677
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2679
COLLATION(перем1) AS c1,
2680
COLLATION('текст') AS c2,
2681
COLLATION(_utf8 'текст') AS c3,
2682
COLLATION(_koi8r '�����') AS c4,
2683
@@collation_connection AS c5,
2684
@@character_set_client AS c6;
2685
END utf8 utf8_general_ci utf8_unicode_ci
2688
SHOW EVENTS LIKE 'ev1'|
2689
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2690
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
2692
SHOW EVENTS LIKE 'ev2'|
2693
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2694
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
2696
SHOW EVENTS LIKE 'ev3'|
2697
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2699
SHOW EVENTS LIKE 'ev4'|
2700
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
2703
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev1'|
2704
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2705
NULL mysqltest1 ev1 root@localhost SYSTEM SQL BEGIN
2706
DECLARE перем1 CHAR(10);
2708
COLLATION(перем1) AS c1,
2709
COLLATION('текст') AS c2,
2710
COLLATION( 'текст') AS c3,
2711
COLLATION( 'текст') AS c4,
2712
@@collation_connection AS c5,
2713
@@character_set_client AS c6;
2714
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2716
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
2717
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2718
NULL mysqltest1 ev2 root@localhost SYSTEM SQL BEGIN
2719
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2721
COLLATION(перем1) AS c1,
2722
COLLATION('текст') AS c2,
2723
COLLATION( 'текст') AS c3,
2724
COLLATION( 'текст') AS c4,
2725
@@collation_connection AS c5,
2726
@@character_set_client AS c6;
2727
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2729
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
2730
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2731
NULL mysqltest2 ev3 root@localhost SYSTEM SQL BEGIN
2732
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2734
COLLATION(перем1) AS c1,
2735
COLLATION('текст') AS c2,
2736
COLLATION( 'текст') AS c3,
2737
COLLATION( 'текст') AS c4,
2738
@@collation_connection AS c5,
2739
@@character_set_client AS c6;
2740
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2742
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
2743
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
2744
NULL mysqltest2 ev4 root@localhost SYSTEM SQL BEGIN
2745
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
2747
COLLATION(перем1) AS c1,
2748
COLLATION('текст') AS c2,
2749
COLLATION( 'текст') AS c3,
2750
COLLATION( 'текст') AS c4,
2751
@@collation_connection AS c5,
2752
@@character_set_client AS c6;
2753
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
2755
-------------------------------------------------------------------
2756
DDL statements within stored routine.
2757
-------------------------------------------------------------------
2759
DROP DATABASE IF EXISTS mysqltest1|
2760
DROP DATABASE IF EXISTS mysqltest2|
2761
CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
2762
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
2765
CREATE PROCEDURE p1()
2767
CREATE TABLE t1(col1 VARCHAR(10));
2768
SHOW CREATE TABLE t1;
2771
CREATE PROCEDURE mysqltest2.p2()
2773
CREATE TABLE t2(col1 VARCHAR(10));
2774
SHOW CREATE TABLE t2;
2779
t1 CREATE TABLE `t1` (
2780
`col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
2781
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
2783
SHOW CREATE TABLE t1|
2785
t1 CREATE TABLE `t1` (
2786
`col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
2787
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
2790
CALL mysqltest2.p2()|
2792
t2 CREATE TABLE `t2` (
2793
`col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
2794
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
2796
SHOW CREATE TABLE mysqltest2.t2|
2798
t2 CREATE TABLE `t2` (
2799
`col1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
2800
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
2802
ALTER DATABASE mysqltest1 COLLATE cp1251_general_cs|
2803
ALTER DATABASE mysqltest2 COLLATE cp1251_general_cs|
2805
DROP TABLE mysqltest2.t2|
2809
t1 CREATE TABLE `t1` (
2810
`col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
2811
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
2813
SHOW CREATE TABLE t1|
2815
t1 CREATE TABLE `t1` (
2816
`col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
2817
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
2820
CALL mysqltest2.p2()|
2822
t2 CREATE TABLE `t2` (
2823
`col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
2824
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
2826
SHOW CREATE TABLE mysqltest2.t2|
2828
t2 CREATE TABLE `t2` (
2829
`col1` varchar(10) COLLATE cp1251_general_cs DEFAULT NULL
2830
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_general_cs
2832
---> connection: default
2834
DROP DATABASE mysqltest1|
2835
DROP DATABASE mysqltest2|