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
837fb441
Commit
837fb441
authored
Oct 25, 2006
by
tsmith/tim@siva.hindu.god
Browse files
Options
Browse Files
Download
Plain Diff
Merge siva.hindu.god:/usr/home/tim/m/bk/50
into siva.hindu.god:/usr/home/tim/m/bk/51
parents
f186d913
514fd098
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
13 deletions
+42
-13
mysql-test/include/mix1.inc
mysql-test/include/mix1.inc
+24
-7
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+18
-6
No files found.
mysql-test/include/mix1.inc
View file @
837fb441
...
...
@@ -31,13 +31,6 @@ eval SET SESSION STORAGE_ENGINE = $engine_type;
drop
table
if
exists
t1
,
t2
,
t1m
,
t1i
,
t2m
,
t2i
,
t4
;
--
enable_warnings
#
# Bug#17530: Incorrect key truncation on table creation caused server crash.
#
create
table
t1
(
f1
varchar
(
800
)
binary
not
null
,
key
(
f1
))
character
set
utf8
collate
utf8_general_ci
;
insert
into
t1
values
(
'aaa'
);
drop
table
t1
;
# BUG#16798: Uninitialized row buffer reads in ref-or-null optimizer
# (repeatable only w/innodb).
...
...
@@ -415,6 +408,28 @@ create table t1(f1 varchar(800) binary not null, key(f1))
insert
into
t1
values
(
'aaa'
);
drop
table
t1
;
#
# Bug#22781: SQL_BIG_RESULT fails to influence sort plan
#
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
INT
,
c
FLOAT
,
KEY
b
(
b
))
ENGINE
=
INNODB
;
INSERT
INTO
t1
VALUES
(
1
,
1
,
1
);
INSERT
INTO
t1
SELECT
a
+
1
,
MOD
(
a
+
1
,
20
),
1
FROM
t1
;
INSERT
INTO
t1
SELECT
a
+
2
,
MOD
(
a
+
2
,
20
),
1
FROM
t1
;
INSERT
INTO
t1
SELECT
a
+
4
,
MOD
(
a
+
4
,
20
),
1
FROM
t1
;
INSERT
INTO
t1
SELECT
a
+
8
,
MOD
(
a
+
8
,
20
),
1
FROM
t1
;
INSERT
INTO
t1
SELECT
a
+
16
,
MOD
(
a
+
16
,
20
),
1
FROM
t1
;
INSERT
INTO
t1
SELECT
a
+
32
,
MOD
(
a
+
32
,
20
),
1
FROM
t1
;
INSERT
INTO
t1
SELECT
a
+
64
,
MOD
(
a
+
64
,
20
),
1
FROM
t1
;
EXPLAIN
SELECT
b
,
SUM
(
c
)
FROM
t1
GROUP
BY
b
;
EXPLAIN
SELECT
SQL_BIG_RESULT
b
,
SUM
(
c
)
FROM
t1
GROUP
BY
b
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
# UPDATE": if the row is updated, it's like a regular UPDATE:
# LAST_INSERT_ID() is not affected.
...
...
@@ -466,3 +481,5 @@ select last_insert_id();
select
*
from
t2
;
drop
table
t2
;
--
echo
End
of
5.1
tests
mysql-test/r/innodb_mysql.result
View file @
837fb441
SET SESSION STORAGE_ENGINE = InnoDB;
drop table if exists t1,t2,t1m,t1i,t2m,t2i,t4;
create table t1(f1 varchar(800) binary not null, key(f1))
character set utf8 collate utf8_general_ci;
Warnings:
Warning 1071 Specified key was too long; max key length is 765 bytes
insert into t1 values('aaa');
drop table t1;
create table t1 (
c_id int(11) not null default '0',
org_id int(11) default null,
...
...
@@ -379,6 +373,23 @@ Warnings:
Warning 1071 Specified key was too long; max key length is 765 bytes
insert into t1 values('aaa');
drop table t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b INT, c FLOAT, KEY b(b)) ENGINE = INNODB;
INSERT INTO t1 VALUES ( 1 , 1 , 1);
INSERT INTO t1 SELECT a + 1 , MOD(a + 1 , 20), 1 FROM t1;
INSERT INTO t1 SELECT a + 2 , MOD(a + 2 , 20), 1 FROM t1;
INSERT INTO t1 SELECT a + 4 , MOD(a + 4 , 20), 1 FROM t1;
INSERT INTO t1 SELECT a + 8 , MOD(a + 8 , 20), 1 FROM t1;
INSERT INTO t1 SELECT a + 16, MOD(a + 16, 20), 1 FROM t1;
INSERT INTO t1 SELECT a + 32, MOD(a + 32, 20), 1 FROM t1;
INSERT INTO t1 SELECT a + 64, MOD(a + 64, 20), 1 FROM t1;
EXPLAIN SELECT b, SUM(c) FROM t1 GROUP BY b;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL b 5 NULL 128
EXPLAIN SELECT SQL_BIG_RESULT b, SUM(c) FROM t1 GROUP BY b;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using filesort
DROP TABLE t1;
End of 5.0 tests
CREATE TABLE `t2` (
`k` int(11) NOT NULL auto_increment,
`a` int(11) default NULL,
...
...
@@ -447,3 +458,4 @@ k a c
11 15 1
12 20 1
drop table t2;
End of 5.1 tests
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