~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/broken/t/mysqldump.test

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/have_log_bin.inc
 
2
 
 
3
# Binlog is required
 
4
--source include/have_log_bin.inc
1
5
 
2
6
--disable_warnings
3
7
DROP TABLE IF EXISTS t1, `"t"1`, t1aa, t2, t2aa, t3;
33
37
DROP TABLE t1;
34
38
 
35
39
--echo #
 
40
--echo # Bug #1994
 
41
--echo # Bug #4261
 
42
--echo #
 
43
 
 
44
#
 
45
# @TODO Implement collation checking for UTF8 + collations
 
46
#
 
47
#CREATE TABLE t1 (a  VARCHAR(255)) DEFAULT CHARSET koi8r;
 
48
#INSERT INTO t1  VALUES (_koi8r x'C1C2C3C4C5'), (NULL);
 
49
#--exec $DRIZZLE_DUMP --skip-comments --skip-extended-insert test t1
 
50
#DROP TABLE t1;
 
51
 
 
52
--echo #
36
53
--echo # Bug #2634
37
54
--echo #
38
55
 
39
 
CREATE TABLE t1 (a int);
 
56
CREATE TABLE t1 (a int) ENGINE=MYISAM;
40
57
INSERT INTO t1 VALUES (1), (2);
41
58
--exec $DRIZZLE_DUMP --skip-comments --compatible=mysql40 test t1
42
59
--exec $DRIZZLE_DUMP --skip-comments --compatible=mysql323 test t1
50
67
--exec $DRIZZLE_DUMP --compact test
51
68
drop table ```a`;
52
69
 
53
 
--echo #
54
 
--echo # Bug #2705 'mysqldump --tab extra output'
55
 
--echo #
56
 
 
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
67
 
drop table t1;
68
 
 
 
70
#--echo #
 
71
#--echo # Bug #2705 'mysqldump --tab extra output'
 
72
#--echo #
 
73
#
 
74
#create table t1(a int);
 
75
#insert into t1 values (1),(2),(3);
 
76
#--exec $DRIZZLE_DUMP --skip-comments --tab=$MYSQLTEST_VARDIR/tmp/ test
 
77
#--cat_file $MYSQLTEST_VARDIR/tmp/t1.sql
 
78
#--cat_file $MYSQLTEST_VARDIR/tmp/t1.txt
 
79
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
 
80
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
 
81
#--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
 
82
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.sql
 
83
#--remove_file $MYSQLTEST_VARDIR/tmp/t1.txt
 
84
#drop table t1;
 
85
#
69
86
--echo #
70
87
--echo # Bug #6101: create database problem
71
88
--echo #
75
92
#
76
93
# @TODO Implement collation checking for UTF8 + collations
77
94
#
78
 
create database mysqldump_test_db collate utf8_esperanto_ci;
79
 
--exec $DRIZZLE_DUMP --skip-comments --databases mysqldump_test_db
80
 
drop database mysqldump_test_db;
 
95
#create database mysqldump_test_db character set latin2 collate latin2_bin;
 
96
#--exec $DRIZZLE_DUMP --skip-comments --databases mysqldump_test_db
 
97
#drop database mysqldump_test_db;
81
98
 
82
99
--echo #
83
100
--echo # Bug #7020
86
103
--echo # --default-character-set=xxx. However, we should dump in UTF8
87
104
--echo # if it is explicitely set.
88
105
 
 
106
#
 
107
# @TODO Implement collation checking for UTF8 + collations
 
108
#
 
109
#CREATE TABLE t1 (a  CHAR(10));
 
110
#INSERT INTO t1  VALUES (_latin1 '����');
 
111
#--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments test t1
 
112
 
 
113
--echo #
 
114
--echo # Bug#8063: make test mysqldump [ fail ]
 
115
--echo # We cannot tes this command because its output depends
 
116
--echo # on --default-character-set incompiled into "mysqldump" program.
 
117
--echo # If the future we can move this command into a separate test with
 
118
--echo # checking that "mysqldump" is compiled with "latin1"
 
119
--echo #
 
120
 
 
121
#
 
122
# @TODO Implement collation checking for UTF8 + collations
 
123
#
 
124
#--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 test t1
 
125
#--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 --default-character-set=cp850 test t1
 
126
#--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=cp850 --compatible=mysql323 test t1
 
127
#--exec $DRIZZLE_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test t1
 
128
#DROP TABLE t1;
89
129
 
90
130
--echo #
91
131
--echo # WL #2319: Exclude Tables from dump
561
601
drop table t1, t2;
562
602
 
563
603
--echo #
 
604
--echo # BUG #12123
 
605
--echo #
 
606
 
 
607
#
 
608
# @TODO Implement collation checking for UTF8 + collations
 
609
#
 
610
#create table t1 (a text character set utf8, b text character set latin1);
 
611
#insert t1 values (0x4F736E616272C3BC636B, 0x4BF66C6E);
 
612
#select * from t1;
 
613
#--exec $DRIZZLE_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test
 
614
#--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t1.sql
 
615
#--exec $DRIZZLE_IMPORT test $MYSQLTEST_VARDIR/tmp/t1.txt
 
616
#select * from t1;
 
617
 
 
618
#drop table t1;
 
619
 
 
620
--echo #
564
621
--echo # BUG#15328 Segmentation fault occured if my.cnf is invalid for escape sequence
565
622
--echo #
566
623
 
620
677
--echo # BUG#13926: --order-by-primary fails if PKEY contains quote character
621
678
--echo #
622
679
 
623
 
#--disable_warnings
624
 
#DROP TABLE IF EXISTS `t1`;
625
 
#CREATE TABLE `t1` (
626
 
#  `a b` INT,
627
 
#  `c"d` INT,
628
 
#  `e``f` INT,
629
 
#  PRIMARY KEY (`a b`, `c"d`, `e``f`)
630
 
#);
631
 
#insert into t1 values (0815, 4711, 2006);
632
 
#
633
 
#--exec $DRIZZLE_DUMP --skip-comments --compatible=ansi --order-by-primary test t1
634
 
#--exec $DRIZZLE_DUMP --skip-comments --order-by-primary test t1
635
 
#DROP TABLE `t1`;
636
 
#--enable_warnings
 
680
--disable_warnings
 
681
DROP TABLE IF EXISTS `t1`;
 
682
CREATE TABLE `t1` (
 
683
  `a b` INT,
 
684
  `c"d` INT,
 
685
  `e``f` INT,
 
686
  PRIMARY KEY (`a b`, `c"d`, `e``f`)
 
687
) ENGINE=MyISAM;
 
688
insert into t1 values (0815, 4711, 2006);
 
689
 
 
690
--exec $DRIZZLE_DUMP --skip-comments --compatible=ansi --order-by-primary test t1
 
691
--exec $DRIZZLE_DUMP --skip-comments --order-by-primary test t1
 
692
DROP TABLE `t1`;
 
693
--enable_warnings
637
694
 
638
695
--echo End of 4.1 tests
639
696
 
643
700
--echo #
644
701
 
645
702
--echo # --skip-dump-date:
646
 
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// /^-- DRI.*///
 
703
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*//
647
704
--exec $DRIZZLE_DUMP --skip-dump-date test
648
705
 
649
706
--echo # --dump-date:
650
 
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/ /^-- DRI.*///
651
 
--exec $DRIZZLE_DUMP --dump-date test 
 
707
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/
 
708
--exec $DRIZZLE_DUMP --dump-date test
652
709
 
653
710
--echo # --dump-date (default):
654
 
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/ /^-- DRI.*///
 
711
--replace_regex /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9 :-]+/ on DATE/
655
712
--exec $DRIZZLE_DUMP test
656
713
 
657
714
--echo #