mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
2af74b7ed8
Moved enabling of warnings to ensure that no warnings are generated when this test case is executed on a clone where InnoDB is not activated. This would fail the test case in those clones otherwise. mysql-test/r/default.result: Rename: mysql-test/r/bugs.result -> mysql-test/r/default.result mysql-test/t/default.test: Moved enabling of warnings to ensure that no warnings are generated when this test case is executed on a clone where InnoDB is not activated. This would fail the test case in those clones otherwise.
138 lines
4.4 KiB
Text
138 lines
4.4 KiB
Text
drop table if exists t1,t2,t3,t4,t5,t6;
|
|
drop database if exists mysqltest;
|
|
CREATE TABLE t1 (a varchar(30) binary NOT NULL DEFAULT ' ',
|
|
b varchar(1) binary NOT NULL DEFAULT ' ',
|
|
c varchar(4) binary NOT NULL DEFAULT '0000',
|
|
d tinyblob NULL,
|
|
e tinyblob NULL,
|
|
f tinyblob NULL,
|
|
g tinyblob NULL,
|
|
h tinyblob NULL,
|
|
i tinyblob NULL,
|
|
j tinyblob NULL,
|
|
k tinyblob NULL,
|
|
l tinyblob NULL,
|
|
m tinyblob NULL,
|
|
n tinyblob NULL,
|
|
o tinyblob NULL,
|
|
p tinyblob NULL,
|
|
q varchar(30) binary NOT NULL DEFAULT ' ',
|
|
r varchar(30) binary NOT NULL DEFAULT ' ',
|
|
s tinyblob NULL,
|
|
t varchar(4) binary NOT NULL DEFAULT ' ',
|
|
u varchar(1) binary NOT NULL DEFAULT ' ',
|
|
v varchar(30) binary NOT NULL DEFAULT ' ',
|
|
w varchar(30) binary NOT NULL DEFAULT ' ',
|
|
x tinyblob NULL,
|
|
y varchar(5) binary NOT NULL DEFAULT ' ',
|
|
z varchar(20) binary NOT NULL DEFAULT ' ',
|
|
a1 varchar(30) binary NOT NULL DEFAULT ' ',
|
|
b1 tinyblob NULL)
|
|
ENGINE=InnoDB DEFAULT CHARACTER SET = latin1 COLLATE latin1_bin;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`b` varchar(1) collate latin1_bin NOT NULL default ' ',
|
|
`c` varchar(4) collate latin1_bin NOT NULL default '0000',
|
|
`d` tinyblob,
|
|
`e` tinyblob,
|
|
`f` tinyblob,
|
|
`g` tinyblob,
|
|
`h` tinyblob,
|
|
`i` tinyblob,
|
|
`j` tinyblob,
|
|
`k` tinyblob,
|
|
`l` tinyblob,
|
|
`m` tinyblob,
|
|
`n` tinyblob,
|
|
`o` tinyblob,
|
|
`p` tinyblob,
|
|
`q` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`r` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`s` tinyblob,
|
|
`t` varchar(4) collate latin1_bin NOT NULL default ' ',
|
|
`u` varchar(1) collate latin1_bin NOT NULL default ' ',
|
|
`v` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`w` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`x` tinyblob,
|
|
`y` varchar(5) collate latin1_bin NOT NULL default ' ',
|
|
`z` varchar(20) collate latin1_bin NOT NULL default ' ',
|
|
`a1` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`b1` tinyblob
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin
|
|
INSERT into t1 (b) values ('1');
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
SELECT * from t1;
|
|
a b c d e f g h i j k l m n o p q r s t u v w x y z a1 b1
|
|
1 0000 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
|
|
CREATE TABLE t2 (a varchar(30) binary NOT NULL DEFAULT ' ',
|
|
b varchar(1) binary NOT NULL DEFAULT ' ',
|
|
c varchar(4) binary NOT NULL DEFAULT '0000',
|
|
d tinyblob NULL,
|
|
e tinyblob NULL,
|
|
f tinyblob NULL,
|
|
g tinyblob NULL,
|
|
h tinyblob NULL,
|
|
i tinyblob NULL,
|
|
j tinyblob NULL,
|
|
k tinyblob NULL,
|
|
l tinyblob NULL,
|
|
m tinyblob NULL,
|
|
n tinyblob NULL,
|
|
o tinyblob NULL,
|
|
p tinyblob NULL,
|
|
q varchar(30) binary NOT NULL DEFAULT ' ',
|
|
r varchar(30) binary NOT NULL DEFAULT ' ',
|
|
s tinyblob NULL,
|
|
t varchar(4) binary NOT NULL DEFAULT ' ',
|
|
u varchar(1) binary NOT NULL DEFAULT ' ',
|
|
v varchar(30) binary NOT NULL DEFAULT ' ',
|
|
w varchar(30) binary NOT NULL DEFAULT ' ',
|
|
x tinyblob NULL,
|
|
y varchar(5) binary NOT NULL DEFAULT ' ',
|
|
z varchar(20) binary NOT NULL DEFAULT ' ',
|
|
a1 varchar(30) binary NOT NULL DEFAULT ' ',
|
|
b1 tinyblob NULL)
|
|
ENGINE=MyISAM DEFAULT CHARACTER SET = latin1 COLLATE latin1_bin;
|
|
SHOW CREATE TABLE t2;
|
|
Table Create Table
|
|
t2 CREATE TABLE `t2` (
|
|
`a` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`b` varchar(1) collate latin1_bin NOT NULL default ' ',
|
|
`c` varchar(4) collate latin1_bin NOT NULL default '0000',
|
|
`d` tinyblob,
|
|
`e` tinyblob,
|
|
`f` tinyblob,
|
|
`g` tinyblob,
|
|
`h` tinyblob,
|
|
`i` tinyblob,
|
|
`j` tinyblob,
|
|
`k` tinyblob,
|
|
`l` tinyblob,
|
|
`m` tinyblob,
|
|
`n` tinyblob,
|
|
`o` tinyblob,
|
|
`p` tinyblob,
|
|
`q` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`r` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`s` tinyblob,
|
|
`t` varchar(4) collate latin1_bin NOT NULL default ' ',
|
|
`u` varchar(1) collate latin1_bin NOT NULL default ' ',
|
|
`v` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`w` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`x` tinyblob,
|
|
`y` varchar(5) collate latin1_bin NOT NULL default ' ',
|
|
`z` varchar(20) collate latin1_bin NOT NULL default ' ',
|
|
`a1` varchar(30) collate latin1_bin NOT NULL default ' ',
|
|
`b1` tinyblob
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin
|
|
INSERT into t2 (b) values ('1');
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
SELECT * from t2;
|
|
a b c d e f g h i j k l m n o p q r s t u v w x y z a1 b1
|
|
1 0000 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
|
|
drop table t1;
|
|
drop table t2;
|