~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: jay
  • Date: 2008-12-22 20:14:27 UTC
  • mfrom: (685.4.32 enable-tests)
  • Revision ID: jay@piggy.tangent.org-20081222201427-t6yc273ateslr8h7
Fresh trunk merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
--echo # Bug #4261
42
42
--echo #
43
43
 
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
47
 
DROP TABLE t1;
 
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;
48
51
 
49
52
--echo #
50
53
--echo # Bug #2634
86
89
 
87
90
--exec $DRIZZLE_DUMP --skip-comments --databases test
88
91
 
89
 
create database mysqldump_test_db character set latin2 collate latin2_bin;
90
 
--exec $DRIZZLE_DUMP --skip-comments --databases mysqldump_test_db
91
 
drop database mysqldump_test_db;
 
92
#
 
93
# @TODO Implement collation checking for UTF8 + collations
 
94
#
 
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;
92
98
 
93
99
--echo #
94
100
--echo # Bug #7020
97
103
--echo # --default-character-set=xxx. However, we should dump in UTF8
98
104
--echo # if it is explicitely set.
99
105
 
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
 
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
103
112
 
104
113
--echo #
105
114
--echo # Bug#8063: make test mysqldump [ fail ]
109
118
--echo # checking that "mysqldump" is compiled with "latin1"
110
119
--echo #
111
120
 
 
121
#
 
122
# @TODO Implement collation checking for UTF8 + collations
 
123
#
112
124
#--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
116
 
DROP TABLE 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;
117
129
 
118
130
--echo #
119
131
--echo # WL #2319: Exclude Tables from dump
580
592
--echo # Bug #9657 mysqldump xml ( -x ) does not format NULL fields correctly
581
593
--echo #
582
594
 
583
 
create table t1 (a int(10));
 
595
create table t1 (a int);
584
596
create table t2 (pk int primary key auto_increment,
585
 
a int(10), b varchar(30), c datetime, d blob, e text);
 
597
a int, b varchar(30), c datetime, d blob, e text);
586
598
insert into t1 values (NULL), (10), (20);
587
599
insert into t2 (a, b) values (NULL, NULL),(10, NULL),(NULL, "twenty"),(30, "thirty");
588
600
--exec $DRIZZLE_DUMP  --skip-comments --xml --no-create-info test
592
604
--echo # BUG #12123
593
605
--echo #
594
606
 
595
 
create table t1 (a text character set utf8, b text character set latin1);
596
 
insert t1 values (0x4F736E616272C3BC636B, 0x4BF66C6E);
597
 
select * from t1;
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
601
 
select * from t1;
 
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;
602
617
 
603
 
drop table t1;
 
618
#drop table t1;
604
619
 
605
620
--echo #
606
621
--echo # BUG#15328 Segmentation fault occured if my.cnf is invalid for escape sequence
614
629
 
615
630
create table `t1` (
616
631
    t1_name varchar(255) default null,
617
 
    t1_id int(10) not null auto_increment,
 
632
    t1_id int not null auto_increment,
618
633
    key (t1_name),
619
634
    primary key (t1_id)
620
 
) auto_increment = 1000 default charset=latin1;
 
635
) auto_increment = 1000;
621
636
 
622
637
insert into t1 (t1_name) values('bla');
623
638
insert into t1 (t1_name) values('bla');
669
684
  `c"d` INT,
670
685
  `e``f` INT,
671
686
  PRIMARY KEY (`a b`, `c"d`, `e``f`)
672
 
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
687
) ENGINE=MyISAM;
673
688
insert into t1 values (0815, 4711, 2006);
674
689
 
675
690
--exec $DRIZZLE_DUMP --skip-comments --compatible=ansi --order-by-primary test t1