Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
86ad0352
Commit
86ad0352
authored
Sep 25, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case fixed to pass w/o innodb
parent
e9d8f094
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
60 deletions
+18
-60
mysql-test/r/default.result
mysql-test/r/default.result
+0
-32
mysql-test/r/group_min_max.result
mysql-test/r/group_min_max.result
+7
-13
mysql-test/t/default.test
mysql-test/t/default.test
+0
-1
mysql-test/t/group_min_max.test
mysql-test/t/group_min_max.test
+9
-14
mysql-test/t/view.test
mysql-test/t/view.test
+2
-0
No files found.
mysql-test/r/default.result
View file @
86ad0352
...
@@ -29,38 +29,6 @@ z varchar(20) binary NOT NULL DEFAULT ' ',
...
@@ -29,38 +29,6 @@ z varchar(20) binary NOT NULL DEFAULT ' ',
a1 varchar(30) binary NOT NULL DEFAULT ' ',
a1 varchar(30) binary NOT NULL DEFAULT ' ',
b1 tinyblob NULL)
b1 tinyblob NULL)
ENGINE=InnoDB DEFAULT CHARACTER SET = latin1 COLLATE latin1_bin;
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');
INSERT into t1 (b) values ('1');
SHOW WARNINGS;
SHOW WARNINGS;
Level Code Message
Level Code Message
...
...
mysql-test/r/group_min_max.result
View file @
86ad0352
...
@@ -1972,29 +1972,23 @@ a
...
@@ -1972,29 +1972,23 @@ a
b
b
c
c
d
d
create table
bug12672
(
create table
t4
(
pk_col int auto_increment primary key, a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
pk_col int auto_increment primary key, a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
) engine=innodb;
) engine=innodb;
insert into
bug12672
(a1, a2, b, c, d, dummy) select * from t1;
insert into
t4
(a1, a2, b, c, d, dummy) select * from t1;
create index idx12672_0 on
bug12672
(a1);
create index idx12672_0 on
t4
(a1);
create index idx12672_1 on
bug12672
(a1,a2,b,c);
create index idx12672_1 on
t4
(a1,a2,b,c);
create index idx12672_2 on
bug12672
(a1,a2,b);
create index idx12672_2 on
t4
(a1,a2,b);
analyze table t1;
analyze table t1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 analyze status Table is already up to date
test.t1 analyze status Table is already up to date
explain select distinct a1 from bug12672 where pk_col not in (1,2,3,4);
select distinct a1 from t4 where pk_col not in (1,2,3,4);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE bug12672 range PRIMARY PRIMARY 4 NULL # Using where; Using temporary
select distinct a1 from bug12672 where pk_col not in (1,2,3,4);
a1
a1
a
a
b
b
c
c
d
d
drop table bug12672;
drop table t1,t2,t3,t4;
drop table t1;
drop table t2;
drop table t3;
create table t1 (
create table t1 (
a varchar(30), b varchar(30), primary key(a), key(b)
a varchar(30), b varchar(30), primary key(a), key(b)
) engine=innodb;
) engine=innodb;
...
...
mysql-test/t/default.test
View file @
86ad0352
...
@@ -40,7 +40,6 @@ CREATE TABLE t1 (a varchar(30) binary NOT NULL DEFAULT ' ',
...
@@ -40,7 +40,6 @@ CREATE TABLE t1 (a varchar(30) binary NOT NULL DEFAULT ' ',
ENGINE
=
InnoDB
DEFAULT
CHARACTER
SET
=
latin1
COLLATE
latin1_bin
;
ENGINE
=
InnoDB
DEFAULT
CHARACTER
SET
=
latin1
COLLATE
latin1_bin
;
--
enable_warnings
--
enable_warnings
SHOW
CREATE
TABLE
t1
;
INSERT
into
t1
(
b
)
values
(
'1'
);
INSERT
into
t1
(
b
)
values
(
'1'
);
SHOW
WARNINGS
;
SHOW
WARNINGS
;
SELECT
*
from
t1
;
SELECT
*
from
t1
;
...
...
mysql-test/t/group_min_max.test
View file @
86ad0352
...
@@ -655,26 +655,21 @@ select distinct a1 from t1 where a2 = 'b';
...
@@ -655,26 +655,21 @@ select distinct a1 from t1 where a2 = 'b';
# Bug #12672: primary key implcitly included in every innodb index
# Bug #12672: primary key implcitly included in every innodb index
#
#
create table bug12672 (
--disable_warnings
create table t4 (
pk_col int auto_increment primary key, a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default '
'
pk_col int auto_increment primary key, a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default '
'
)
engine
=
innodb
;
)
engine
=
innodb
;
--
enable_warnings
insert
into
t4
(
a1
,
a2
,
b
,
c
,
d
,
dummy
)
select
*
from
t1
;
insert
into
bug12672
(
a1
,
a2
,
b
,
c
,
d
,
dummy
)
select
*
from
t1
;
create
index
idx12672_0
on
t4
(
a1
);
create
index
idx12672_1
on
t4
(
a1
,
a2
,
b
,
c
);
create
index
idx12672_0
on
bug12672
(
a1
);
create
index
idx12672_2
on
t4
(
a1
,
a2
,
b
);
create
index
idx12672_1
on
bug12672
(
a1
,
a2
,
b
,
c
);
create
index
idx12672_2
on
bug12672
(
a1
,
a2
,
b
);
analyze
table
t1
;
analyze
table
t1
;
--
replace_column
9
#
select
distinct
a1
from
t4
where
pk_col
not
in
(
1
,
2
,
3
,
4
);
explain
select
distinct
a1
from
bug12672
where
pk_col
not
in
(
1
,
2
,
3
,
4
);
select
distinct
a1
from
bug12672
where
pk_col
not
in
(
1
,
2
,
3
,
4
);
drop
table
bug12672
;
drop
table
t1
;
drop
table
t1
,
t2
,
t3
,
t4
;
drop
table
t2
;
drop
table
t3
;
#
#
# Bug #6142: a problem with the empty innodb table
# Bug #6142: a problem with the empty innodb table
...
...
mysql-test/t/view.test
View file @
86ad0352
...
@@ -2043,6 +2043,7 @@ drop view v1;
...
@@ -2043,6 +2043,7 @@ drop view v1;
drop
table
t1
;
drop
table
t1
;
# BUG#12941
# BUG#12941
#
#
--
disable_warnings
create
table
t1
(
create
table
t1
(
r_object_id
char
(
16
)
NOT
NULL
,
r_object_id
char
(
16
)
NOT
NULL
,
group_name
varchar
(
32
)
NOT
NULL
group_name
varchar
(
32
)
NOT
NULL
...
@@ -2053,6 +2054,7 @@ create table t2 (
...
@@ -2053,6 +2054,7 @@ create table t2 (
i_position
int
(
11
)
NOT
NULL
,
i_position
int
(
11
)
NOT
NULL
,
users_names
varchar
(
32
)
default
NULL
users_names
varchar
(
32
)
default
NULL
)
Engine
=
InnoDB
;
)
Engine
=
InnoDB
;
--
enable_warnings
create
view
v1
as
select
r_object_id
,
group_name
from
t1
;
create
view
v1
as
select
r_object_id
,
group_name
from
t1
;
create
view
v2
as
select
r_object_id
,
i_position
,
users_names
from
t2
;
create
view
v2
as
select
r_object_id
,
i_position
,
users_names
from
t2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment