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
b308c4a9
Commit
b308c4a9
authored
May 18, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into shellback.(none):/home/msvensson/mysql/mysql-5.1-new-maint
parents
de0e4a9a
fdeacbcf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
13 deletions
+58
-13
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+43
-0
mysql-test/r/create.result
mysql-test/r/create.result
+0
-6
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+6
-0
mysql-test/t/create.test
mysql-test/t/create.test
+0
-7
mysql-test/t/innodb_mysql.test
mysql-test/t/innodb_mysql.test
+9
-0
No files found.
mysql-test/lib/mtr_cases.pl
View file @
b308c4a9
...
@@ -455,6 +455,10 @@ sub collect_one_test_case($$$$$$$) {
...
@@ -455,6 +455,10 @@ sub collect_one_test_case($$$$$$$) {
"
Test case '
$tname
' is skipped.
");
"
Test case '
$tname
' is skipped.
");
}
}
}
}
else
{
mtr_options_from_test_file
(
$tinfo
,"
$testdir
/
${tname}
.test
");
}
# We can't restart a running server that may be in use
# We can't restart a running server that may be in use
...
@@ -463,7 +467,46 @@ sub collect_one_test_case($$$$$$$) {
...
@@ -463,7 +467,46 @@ sub collect_one_test_case($$$$$$$) {
{
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
skip
'}
=
1
;
}
}
}
}
sub
mtr_options_from_test_file
($$$)
{
my
$tinfo
=
shift
;
my
$file
=
shift
;
open
(
FILE
,"
<
",
$file
)
or
mtr_error
("
can't open file
\"
$file
\"
: $!
");
my
@args
;
while
(
<
FILE
>
)
{
chomp
;
# Check if test uses innodb
if
(
defined
mtr_match_substring
(
$_
,"
include/have_innodb.inc
"))
{
$tinfo
->
{'
innodb_test
'}
=
1
;
}
# If test sources another file, open it as well
my
$value
=
mtr_match_prefix
(
$_
,
"
--source
");
if
(
defined
$value
)
{
$value
=~
s/^\s+//
;
# Remove leading space
$value
=~
s/\s+$//
;
# Remove ending space
my
$sourced_file
=
"
$::glob_mysql_test_dir/
$value
";
mtr_options_from_test_file
(
$tinfo
,
$sourced_file
);
}
}
close
FILE
;
if
(
!
$tinfo
->
{'
innodb_test
'}
)
{
# mtr_report("Adding '--skip-innodb' to $tinfo->{'name'}");
push
(
@
{
$tinfo
->
{'
master_opt
'}},
"
--skip-innodb
");
}
}
1
;
1
;
mysql-test/r/create.result
View file @
b308c4a9
...
@@ -772,9 +772,3 @@ t1 CREATE TABLE `t1` (
...
@@ -772,9 +772,3 @@ t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL
`i` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295
drop table t1;
drop table t1;
create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
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;
mysql-test/r/innodb_mysql.result
View file @
b308c4a9
...
@@ -54,3 +54,9 @@ c.c_id = 218 and expiredate is null;
...
@@ -54,3 +54,9 @@ c.c_id = 218 and expiredate is null;
slai_id
slai_id
12
12
drop table t1, t2;
drop table t1, t2;
create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
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;
mysql-test/t/create.test
View file @
b308c4a9
...
@@ -667,12 +667,5 @@ alter table t1 max_rows=100000000000;
...
@@ -667,12 +667,5 @@ alter table t1 max_rows=100000000000;
show
create
table
t1
;
show
create
table
t1
;
drop
table
t1
;
drop
table
t1
;
#
# Bug#17530: Incorrect key truncation on table creation caused server crash.
#
create
table
t1
(
f1
varchar
(
800
)
binary
not
null
,
key
(
f1
))
engine
=
innodb
character
set
utf8
collate
utf8_general_ci
;
insert
into
t1
values
(
'aaa'
);
drop
table
t1
;
# End of 5.0 tests
# End of 5.0 tests
mysql-test/t/innodb_mysql.test
View file @
b308c4a9
...
@@ -57,3 +57,12 @@ where
...
@@ -57,3 +57,12 @@ where
c
.
c_id
=
218
and
expiredate
is
null
;
c
.
c_id
=
218
and
expiredate
is
null
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug#17530: Incorrect key truncation on table creation caused server crash.
#
create
table
t1
(
f1
varchar
(
800
)
binary
not
null
,
key
(
f1
))
engine
=
innodb
character
set
utf8
collate
utf8_general_ci
;
insert
into
t1
values
(
'aaa'
);
drop
table
t1
;
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