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
8b67ec09
Commit
8b67ec09
authored
Feb 17, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/Users/kent/mysql/bk/mysql-5.0-compile
parents
6048daa1
675ad13d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
26 deletions
+52
-26
mysql-test/lib/mtr_process.pl
mysql-test/lib/mtr_process.pl
+28
-5
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-0
mysql-test/r/fulltext_cache.result
mysql-test/r/fulltext_cache.result
+18
-18
mysql-test/t/fulltext_cache.test
mysql-test/t/fulltext_cache.test
+2
-2
mysql-test/t/ps_1general.test
mysql-test/t/ps_1general.test
+1
-0
mysql-test/t/rpl_delete_all.test
mysql-test/t/rpl_delete_all.test
+1
-1
No files found.
mysql-test/lib/mtr_process.pl
View file @
8b67ec09
...
...
@@ -123,6 +123,17 @@ sub spawn_impl ($$$$$$$) {
$SIG
{
INT
}
=
'
DEFAULT
';
# Parent do some stuff, we don't
if
(
$::glob_cygwin_shell
and
$mode
eq
'
test
'
)
{
# Programs started from mysqltest under Cygwin, are to
# execute them within Cygwin. Else simple things in test
# files like
# --system "echo 1 > file"
# will fail.
# FIXME not working :-(
# $ENV{'COMSPEC'}= "$::glob_cygwin_shell -c";
}
if
(
$output
)
{
if
(
!
open
(
STDOUT
,"
>
",
$output
)
)
...
...
@@ -130,6 +141,7 @@ sub spawn_impl ($$$$$$$) {
mtr_error
("
can't redirect STDOUT to
\"
$output
\"
: $!
");
}
}
if
(
$error
)
{
if
(
$output
eq
$error
)
...
...
@@ -147,6 +159,7 @@ sub spawn_impl ($$$$$$$) {
}
}
}
if
(
$input
)
{
if
(
!
open
(
STDIN
,"
<
",
$input
)
)
...
...
@@ -154,7 +167,11 @@ sub spawn_impl ($$$$$$$) {
mtr_error
("
can't redirect STDIN to
\"
$input
\"
: $!
");
}
}
exec
(
$path
,
@$arg_list_t
);
if
(
!
exec
(
$path
,
@$arg_list_t
)
)
{
mtr_error
("
failed to execute
\"
$path
\"
: $!
");
}
}
}
}
...
...
@@ -569,7 +586,7 @@ sub mtr_stop_mysqld_servers ($) {
sub
mtr_mysqladmin_shutdown
()
{
my
$spec
=
shift
;
my
@
mysql_admin_pids
;
my
%
mysql_admin_pids
;
my
@to_kill_specs
;
foreach
my
$srv
(
@$spec
)
...
...
@@ -611,13 +628,19 @@ sub mtr_mysqladmin_shutdown () {
# We don't wait for termination of mysqladmin
my
$pid
=
mtr_spawn
(
$::exe_mysqladmin
,
$args
,
"",
$::path_manager_log
,
$::path_manager_log
,
"");
push
(
@mysql_admin_pids
,
$pid
)
;
$mysql_admin_pids
{
$pid
}
=
1
;
}
# We wait blocking, we wait for the last one anyway
foreach
my
$pid
(
@
mysql_admin_pids
)
while
(
keys
%
mysql_admin_pids
)
{
waitpid
(
$pid
,
0
);
# FIXME no need to check -1 or 0?
foreach
my
$pid
(
keys
%
mysql_admin_pids
)
{
if
(
waitpid
(
$pid
,
0
)
>
0
)
{
delete
$mysql_admin_pids
{
$pid
};
}
}
}
# If we trusted "mysqladmin --shutdown_timeout= ..." we could just
...
...
mysql-test/mysql-test-run.pl
View file @
8b67ec09
...
...
@@ -1261,6 +1261,7 @@ sub install_db ($$) {
mtr_add_arg
(
$args
,
"
--no-defaults
");
mtr_add_arg
(
$args
,
"
--bootstrap
");
mtr_add_arg
(
$args
,
"
--console
");
mtr_add_arg
(
$args
,
"
--skip-grant-tables
");
mtr_add_arg
(
$args
,
"
--basedir=%s
",
$path_my_basedir
);
mtr_add_arg
(
$args
,
"
--datadir=%s
",
$data_dir
);
...
...
@@ -1604,6 +1605,7 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg
(
$args
,
"
%s--no-defaults
",
$prefix
);
}
mtr_add_arg
(
$args
,
"
%s--console
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--basedir=%s
",
$prefix
,
$path_my_basedir
);
mtr_add_arg
(
$args
,
"
%s--character-sets-dir=%s
",
$prefix
,
$path_charsetsdir
);
mtr_add_arg
(
$args
,
"
%s--core
",
$prefix
);
...
...
mysql-test/r/fulltext_cache.result
View file @
8b67ec09
...
...
@@ -21,17 +21,17 @@ INSERT INTO t2 VALUES (5,2,'um copo de Vodka');
INSERT INTO t2 VALUES (6,2,'um chocolate Snickers');
INSERT INTO t2 VALUES (7,1,'Bife');
INSERT INTO t2 VALUES (8,1,'Pizza de Salmao');
SELECT t1.q, t2.item, t2.id, round(MATCH t2.item AGAINST ('sushi'),
8
)
SELECT t1.q, t2.item, t2.id, round(MATCH t2.item AGAINST ('sushi'),
6
)
as x FROM t1, t2 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
q item id x
aaaaaaaaa dsaass de sushi 1 1.92378
664
aaaaaaaaa dsaass de Bolo de Chocolate 2 0.000000
00
aaaaaaaaa dsaass de Feijoada 3 0.000000
00
aaaaaaaaa dsaass de Mousse de Chocolate 4 0.000000
00
ssde df s fsda sad er um copo de Vodka 5 0.000000
00
ssde df s fsda sad er um chocolate Snickers 6 0.000000
00
aaaaaaaaa dsaass de Bife 7 0.000000
00
aaaaaaaaa dsaass de Pizza de Salmao 8 0.000000
00
aaaaaaaaa dsaass de sushi 1 1.92378
7
aaaaaaaaa dsaass de Bolo de Chocolate 2 0.000000
aaaaaaaaa dsaass de Feijoada 3 0.000000
aaaaaaaaa dsaass de Mousse de Chocolate 4 0.000000
ssde df s fsda sad er um copo de Vodka 5 0.000000
ssde df s fsda sad er um chocolate Snickers 6 0.000000
aaaaaaaaa dsaass de Bife 7 0.000000
aaaaaaaaa dsaass de Pizza de Salmao 8 0.000000
SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi' IN BOOLEAN MODE)
as x FROM t1, t2 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
q item id x
...
...
@@ -43,17 +43,17 @@ ssde df s fsda sad er um copo de Vodka 5 0
ssde df s fsda sad er um chocolate Snickers 6 0
aaaaaaaaa dsaass de Bife 7 0
aaaaaaaaa dsaass de Pizza de Salmao 8 0
SELECT t1.q, t2.item, t2.id, round(MATCH t2.item AGAINST ('sushi'),
8
)
SELECT t1.q, t2.item, t2.id, round(MATCH t2.item AGAINST ('sushi'),
6
)
as x FROM t2, t1 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
q item id x
aaaaaaaaa dsaass de sushi 1 1.92378
664
aaaaaaaaa dsaass de Bolo de Chocolate 2 0.000000
00
aaaaaaaaa dsaass de Feijoada 3 0.000000
00
aaaaaaaaa dsaass de Mousse de Chocolate 4 0.000000
00
ssde df s fsda sad er um copo de Vodka 5 0.000000
00
ssde df s fsda sad er um chocolate Snickers 6 0.000000
00
aaaaaaaaa dsaass de Bife 7 0.000000
00
aaaaaaaaa dsaass de Pizza de Salmao 8 0.000000
00
aaaaaaaaa dsaass de sushi 1 1.92378
7
aaaaaaaaa dsaass de Bolo de Chocolate 2 0.000000
aaaaaaaaa dsaass de Feijoada 3 0.000000
aaaaaaaaa dsaass de Mousse de Chocolate 4 0.000000
ssde df s fsda sad er um copo de Vodka 5 0.000000
ssde df s fsda sad er um chocolate Snickers 6 0.000000
aaaaaaaaa dsaass de Bife 7 0.000000
aaaaaaaaa dsaass de Pizza de Salmao 8 0.000000
SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi' IN BOOLEAN MODE)
as x FROM t2, t1 WHERE (t2.id2 = t1.id) ORDER BY x DESC,t2.id;
q item id x
...
...
mysql-test/t/fulltext_cache.test
View file @
8b67ec09
...
...
@@ -29,13 +29,13 @@ INSERT INTO t2 VALUES (6,2,'um chocolate Snickers');
INSERT
INTO
t2
VALUES
(
7
,
1
,
'Bife'
);
INSERT
INTO
t2
VALUES
(
8
,
1
,
'Pizza de Salmao'
);
SELECT
t1
.
q
,
t2
.
item
,
t2
.
id
,
round
(
MATCH
t2
.
item
AGAINST
(
'sushi'
),
8
)
SELECT
t1
.
q
,
t2
.
item
,
t2
.
id
,
round
(
MATCH
t2
.
item
AGAINST
(
'sushi'
),
6
)
as
x
FROM
t1
,
t2
WHERE
(
t2
.
id2
=
t1
.
id
)
ORDER
BY
x
DESC
,
t2
.
id
;
SELECT
t1
.
q
,
t2
.
item
,
t2
.
id
,
MATCH
t2
.
item
AGAINST
(
'sushi'
IN
BOOLEAN
MODE
)
as
x
FROM
t1
,
t2
WHERE
(
t2
.
id2
=
t1
.
id
)
ORDER
BY
x
DESC
,
t2
.
id
;
SELECT
t1
.
q
,
t2
.
item
,
t2
.
id
,
round
(
MATCH
t2
.
item
AGAINST
(
'sushi'
),
8
)
SELECT
t1
.
q
,
t2
.
item
,
t2
.
id
,
round
(
MATCH
t2
.
item
AGAINST
(
'sushi'
),
6
)
as
x
FROM
t2
,
t1
WHERE
(
t2
.
id2
=
t1
.
id
)
ORDER
BY
x
DESC
,
t2
.
id
;
SELECT
t1
.
q
,
t2
.
item
,
t2
.
id
,
MATCH
t2
.
item
AGAINST
(
'sushi'
IN
BOOLEAN
MODE
)
...
...
mysql-test/t/ps_1general.test
View file @
8b67ec09
...
...
@@ -606,6 +606,7 @@ drop table t2;
prepare
stmt1
from
' rename table t5 to t6, t7 to t8 '
;
create
table
t5
(
a
int
)
;
# rename must fail, t7 does not exist
--
replace_result
\\
/
--
error
1017
execute
stmt1
;
create
table
t7
(
a
int
)
;
...
...
mysql-test/t/rpl_delete_all.test
View file @
8b67ec09
...
...
@@ -6,7 +6,7 @@ connection master;
drop
database
if
exists
mysqltest
;
sync_slave_with_master
;
# can't read dir
--
replace_result
"Errcode: 1"
"Errcode: X"
"Errcode: 2"
"Errcode: X"
--
replace_result
"Errcode: 1"
"Errcode: X"
"Errcode: 2"
"Errcode: X"
\\
/
--
error
12
show
tables
from
mysqltest
;
...
...
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