1
--source include/have_log_bin.inc
4
--source include/have_log_bin.inc
7
3
DROP TABLE IF EXISTS t1, `"t"1`, t1aa, t2, t2aa, t3;
44
CREATE TABLE t1 (a VARCHAR(255)) DEFAULT CHARSET koi8r;
45
INSERT INTO t1 VALUES (_koi8r x'C1C2C3C4C5'), (NULL);
46
--exec $DRIZZLE_DUMP --skip-comments --skip-extended-insert test t1
53
CREATE TABLE t1 (a int) ENGINE=MYISAM;
39
CREATE TABLE t1 (a int);
54
40
INSERT INTO t1 VALUES (1), (2);
55
41
--exec $DRIZZLE_DUMP --skip-comments --compatible=mysql40 test t1
56
42
--exec $DRIZZLE_DUMP --skip-comments --compatible=mysql323 test t1
64
50
--exec $DRIZZLE_DUMP --compact test
68
#--echo # Bug #2705 'mysqldump --tab extra output'
71
#create table t1(a int);
72
#insert into t1 values (1),(2),(3);
73
#--exec $DRIZZLE_DUMP --skip-comments --tab=$MYSQLTEST_VARDIR/tmp/ test
74
#--cat_file $MYSQLTEST_VARDIR/tmp/t1.sql
75
#--cat_file $MYSQLTEST_VARDIR/tmp/t1.txt
76
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
77
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
78
#--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
79
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
80
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
54
--echo # Bug #2705 'mysqldump --tab extra output'
57
create table t1(a int);
58
insert into t1 values (1),(2),(3);
59
--exec $DRIZZLE_DUMP --skip-comments --tab=$MYSQLTEST_VARDIR/tmp/ test
60
--cat_file $MYSQLTEST_VARDIR/tmp/t1.sql
61
--cat_file $MYSQLTEST_VARDIR/tmp/t1.txt
62
--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
63
--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
64
--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
65
--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
66
--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
84
70
--echo # Bug #6101: create database problem
87
73
--exec $DRIZZLE_DUMP --skip-comments --databases test
89
create database mysqldump_test_db character set latin2 collate latin2_bin;
76
# @TODO Implement collation checking for UTF8 + collations
78
create database mysqldump_test_db collate utf8_esperanto_ci;
90
79
--exec $DRIZZLE_DUMP --skip-comments --databases mysqldump_test_db
91
80
drop database mysqldump_test_db;
97
86
--echo # --default-character-set=xxx. However, we should dump in UTF8
98
87
--echo # if it is explicitely set.
100
CREATE TABLE t1 (a CHAR(10));
101
INSERT INTO t1 VALUES (_latin1 '����');
102
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments test t1
105
--echo # Bug#8063: make test mysqldump [ fail ]
106
--echo # We cannot tes this command because its output depends
107
--echo # on --default-character-set incompiled into "mysqldump" program.
108
--echo # If the future we can move this command into a separate test with
109
--echo # checking that "mysqldump" is compiled with "latin1"
112
#--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 test t1
113
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 --default-character-set=cp850 test t1
114
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=cp850 --compatible=mysql323 test t1
115
--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test t1
119
91
--echo # WL #2319: Exclude Tables from dump
580
552
--echo # Bug #9657 mysqldump xml ( -x ) does not format NULL fields correctly
583
create table t1 (a int(10));
555
create table t1 (a int);
584
556
create table t2 (pk int primary key auto_increment,
585
a int(10), b varchar(30), c datetime, d blob, e text);
557
a int, b varchar(30), c datetime, d blob, e text);
586
558
insert into t1 values (NULL), (10), (20);
587
559
insert into t2 (a, b) values (NULL, NULL),(10, NULL),(NULL, "twenty"),(30, "thirty");
588
560
--exec $DRIZZLE_DUMP --skip-comments --xml --no-create-info test
589
561
drop table t1, t2;
595
create table t1 (a text character set utf8, b text character set latin1);
596
insert t1 values (0x4F736E616272C3BC636B, 0x4BF66C6E);
598
--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
599
--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t1.sql
600
--exec $DRIZZLE_IMPORT test $MYSQLTEST_VARDIR/tmp/t1.txt
606
564
--echo # BUG#15328 Segmentation fault occured if my.cnf is invalid for escape sequence
615
573
create table `t1` (
616
574
t1_name varchar(255) default null,
617
t1_id int(10) not null auto_increment,
575
t1_id int not null auto_increment,
619
577
primary key (t1_id)
620
) auto_increment = 1000 default charset=latin1;
578
) auto_increment = 1000;
622
580
insert into t1 (t1_name) values('bla');
623
581
insert into t1 (t1_name) values('bla');
671
629
PRIMARY KEY (`a b`, `c"d`, `e``f`)
672
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
673
631
insert into t1 values (0815, 4711, 2006);
675
633
--exec $DRIZZLE_DUMP --skip-comments --compatible=ansi --order-by-primary test t1
687
645
--echo # --skip-dump-date:
688
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*//
646
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// /^-- DRI.*///
689
647
--exec $DRIZZLE_DUMP --skip-dump-date test
691
649
--echo # --dump-date:
692
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/
693
--exec $DRIZZLE_DUMP --dump-date test
650
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/ /^-- DRI.*///
651
--exec $DRIZZLE_DUMP --dump-date test
695
653
--echo # --dump-date (default):
696
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/
654
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/ /^-- DRI.*///
697
655
--exec $DRIZZLE_DUMP test