Skip to content

Commit 15d4852

Browse files
author
monty@mysql.com
committed
Merge mysql.com:/home/my/mysql-4.1
into mysql.com:/home/my/mysql-5.0
2 parents b3cbd00 + 3c12d0a commit 15d4852

File tree

360 files changed

+846
-175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

360 files changed

+846
-175
lines changed

.bzrignore

+5-4
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ innobase/conftest.s1
357357
innobase/conftest.subs
358358
innobase/ib_config.h
359359
innobase/ib_config.h.in
360+
innobase/mkinstalldirs
360361
innobase/stamp-h1
361362
insert_test
362363
install
@@ -537,6 +538,7 @@ mit-pthreads/machdep.c
537538
mit-pthreads/pg++
538539
mit-pthreads/pgcc
539540
mit-pthreads/syscall.S
541+
mkinstalldirs
540542
myisam/FT1.MYD
541543
myisam/FT1.MYI
542544
myisam/ft_dump
@@ -639,6 +641,7 @@ mysql-test/r/slave-stopped.eval
639641
mysql-test/share/mysql
640642
mysql-test/std_data/*.pem
641643
mysql-test/t/index_merge.load
644+
mysql-test/var
642645
mysql-test/var/*
643646
mysql.kdevprj
644647
mysql.proj
@@ -793,6 +796,7 @@ ndb/src/common/portlib/libportlib.dsp
793796
ndb/src/common/transporter/libtransporter.dsp
794797
ndb/src/common/util/libgeneral.dsp
795798
ndb/src/cw/cpcd/ndb_cpcd
799+
ndb/src/dummy.cpp
796800
ndb/src/kernel/blocks/backup/libbackup.dsp
797801
ndb/src/kernel/blocks/backup/restore/ndb_restore
798802
ndb/src/kernel/blocks/cmvmi/libcmvmi.dsp
@@ -879,6 +883,7 @@ ndb/test/tools/hugoScanUpdate
879883
ndb/test/tools/ndb_cpcc
880884
ndb/test/tools/restart
881885
ndb/test/tools/verify_index
886+
ndb/tools/ndb_config
882887
ndb/tools/ndb_delete_all
883888
ndb/tools/ndb_delete_all.dsp
884889
ndb/tools/ndb_desc
@@ -1116,7 +1121,3 @@ vio/test-ssl
11161121
vio/test-sslclient
11171122
vio/test-sslserver
11181123
vio/viotest-ssl
1119-
ndb/src/dummy.cpp
1120-
innobase/mkinstalldirs
1121-
mkinstalldirs
1122-
mysql-test/var

include/thr_lock.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ enum enum_thr_lock_result thr_multi_lock(THR_LOCK_DATA **data,
144144
uint count, THR_LOCK_OWNER *owner);
145145
void thr_multi_unlock(THR_LOCK_DATA **data,uint count);
146146
void thr_abort_locks(THR_LOCK *lock);
147-
bool thr_abort_locks_for_thread(THR_LOCK *lock, pthread_t thread);
147+
my_bool thr_abort_locks_for_thread(THR_LOCK *lock, pthread_t thread);
148148
void thr_print_locks(void); /* For debugging */
149149
my_bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data);
150150
my_bool thr_reschedule_write_lock(THR_LOCK_DATA *data);
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
prepare stmt1 from ' show full processlist ';
2+
execute stmt1;
3+
Id User Host db Command Time State Info
4+
number root localhost test Execute time NULL show full processlist
5+
deallocate prepare stmt1;

mysql-test/r/ps_grant.result

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ my_col
5454
4
5555
execute s_t9 ;
5656
ERROR 42S02: Table 'mysqltest.t9' doesn't exist
57+
deallocate prepare s_t9;
5758
revoke all privileges on mysqltest.t1 from second_user@localhost
5859
identified by 'looser' ;
5960
show grants for second_user@localhost ;

mysql-test/t/alias.test

+2
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ UPDATE t1 SET t1.xstatus_vor = Greatest(t1.xstatus_vor,1) WHERE t1.aufnr =
8686
ASC LIMIT 1;
8787

8888
drop table t1;
89+
90+
# End of 4.1 tests

mysql-test/t/alter_table.test

+2
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,5 @@ create table t1 ( a timestamp );
360360
--error 1089
361361
alter table t1 add unique ( a(1) );
362362
drop table t1;
363+
364+
# End of 4.1 tests

mysql-test/t/analyse.test

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ insert into t1 values ('abc'),('abc\'def\\hij\"klm\0opq'),('\''),('\"'),('\\'),(
4848
select * from t1 procedure analyse();
4949
drop table t1;
5050

51+
# End of 4.1 tests
52+
5153
#decimal-related test
5254

5355
create table t1 (df decimal(5,1));

mysql-test/t/analyze.test

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#
22
# Bug #10901 Analyze Table on new table destroys table
33
# This is minimal test case to get error
4-
# The problem was that analyze table wrote the shared state to the file and this
5-
# didn't include the inserts while locked. A check was needed to ensure that
6-
# state information was not updated when executing analyze table for a locked table.
7-
# The analyze table had to be within locks and check table had to be after unlocking
8-
# since then it brings the wrong state from disk rather than from the currently
9-
# correct internal state. The insert is needed since it changes the file state,
10-
# number of records.
11-
# The fix is to synchronise the state of the shared state and the current state before
12-
# calling mi_state_info_write
4+
# The problem was that analyze table wrote the shared state to the
5+
# file and this didn't include the inserts while locked. A check was
6+
# needed to ensure that state information was not updated when
7+
# executing analyze table for a locked table. The analyze table had
8+
# to be within locks and check table had to be after unlocking since
9+
# then it brings the wrong state from disk rather than from the
10+
# currently correct internal state. The insert is needed since it
11+
# changes the file state, number of records. The fix is to
12+
# synchronise the state of the shared state and the current state
13+
# before calling mi_state_info_write
1314
#
15+
1416
create table t1 (a bigint);
1517
lock tables t1 write;
1618
insert into t1 values(0);
@@ -37,3 +39,4 @@ check table t1;
3739

3840
drop table t1;
3941

42+
# End of 4.1 tests

mysql-test/t/ansi.test

+2
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ SELECT id FROM t1 GROUP BY id2;
2525
drop table t1;
2626

2727
SET @@SQL_MODE="";
28+
29+
# End of 4.1 tests

mysql-test/t/archive.test

+2
Original file line numberDiff line numberDiff line change
@@ -1333,3 +1333,5 @@ INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''
13331333
# Cleanup, test is over
13341334
#
13351335
drop table t1, t2, t4;
1336+
1337+
# End of 4.1 tests

mysql-test/t/auto_increment.test

+2
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ INSERT INTO t1 (b) VALUES ('bbbb');
219219
CHECK TABLE t1;
220220
DROP TABLE IF EXISTS t1;
221221

222+
# End of 4.1 tests
223+
222224
#
223225
# Bug #11080 & #11005 Multi-row REPLACE fails on a duplicate key error
224226
#

mysql-test/t/backup.test

+2
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ unlock tables;
5252
connection con1;
5353
reap;
5454
drop table t5;
55+
56+
# End of 4.1 tests

mysql-test/t/bdb-alter-table-1.test

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ select * from t1;
1414
alter table t1 drop column test;
1515

1616
# Now we do a reboot and continue with the next test
17+
18+
# End of 4.1 tests

mysql-test/t/bdb-alter-table-2.test

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
-- source include/have_bdb.inc
77
select * from t1;
88
drop table t1;
9+
10+
# End of 4.1 tests

mysql-test/t/bdb-crash.test

+2
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ set autocommit=0;
4747
insert into t1 values(1);
4848
analyze table t1;
4949
drop table t1;
50+
51+
# End of 4.1 tests

mysql-test/t/bdb-deadlock.test

+2
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ select * from t2;
5555
commit;
5656

5757
drop table t1,t2;
58+
59+
# End of 4.1 tests

mysql-test/t/bdb-deadlock.tminus

+2
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ select * from t2;
5555
commit;
5656

5757
drop table t1,t2;
58+
59+
# End of 4.1 tests

mysql-test/t/bdb.test

+2
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,8 @@ SELECT id FROM t1 WHERE (list_id = 1) AND (term = "lettera");
937937
SELECT id FROM t1 WHERE (list_id = 1) AND (term = "letterd");
938938
DROP TABLE t1;
939939

940+
# End of 4.1 tests
941+
940942
#
941943
# alter temp table
942944
#

mysql-test/t/bdb_cache.test

+2
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ show status like "Qcache_hits";
4949
commit;
5050
show status like "Qcache_queries_in_cache";
5151
drop table if exists t1, t2, t3;
52+
53+
# End of 4.1 tests

mysql-test/t/bench_count_distinct.test

+2
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ enable_query_log;
1818
select count(distinct n) from t1;
1919
explain extended select count(distinct n) from t1;
2020
drop table t1;
21+
22+
# End of 4.1 tests

mysql-test/t/bigint.test

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ t2.value64=t1.value64;
104104

105105
drop table t1, t2;
106106

107+
# End of 4.1 tests
108+
107109
#
108110
# Test of CREATE ... SELECT and unsigned integers
109111
#

mysql-test/t/binary.test

+2
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,5 @@ drop table t1;
8787
create table t1 (a binary);
8888
show create table t1;
8989
drop table t1;
90+
91+
# End of 4.1 tests

mysql-test/t/blackhole.test

+2
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,5 @@ let $VERSION=`select version()`;
125125
show binlog events;
126126

127127
drop table t1,t2,t3;
128+
129+
# End of 4.1 tests

mysql-test/t/bool.test

+2
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ select ifnull(A, 'N') as A, ifnull(B, 'N') as B, ifnull(not A, 'N') as nA, ifnul
5858
select ifnull(A=1, 'N') as A, ifnull(B=1, 'N') as B, ifnull(not (A=1), 'N') as nA, ifnull(not (B=1), 'N') as nB, ifnull((A=1) and (B=1), 'N') as AB, ifnull(not ((A=1) and (B=1)), 'N') as `n(AB)`, ifnull((not (A=1) or not (B=1)), 'N') as nAonB, ifnull((A=1) or (B=1), 'N') as AoB, ifnull(not((A=1) or (B=1)), 'N') as `n(AoB)`, ifnull(not (A=1) and not (B=1), 'N') as nAnB from t1;
5959

6060
drop table t1;
61+
62+
# End of 4.1 tests

mysql-test/t/bulk_replace.test

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ select * from t1;
1111
check table t1;
1212
drop table t1;
1313

14+
# End of 4.1 tests

mysql-test/t/case.test

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ SELECT 'case+union+test'
122122
UNION
123123
SELECT CASE '1' WHEN '2' THEN 'BUG' ELSE 'nobug' END;
124124

125+
# End of 4.1 tests
126+
127+
125128
#
126129
# Tests for bug #9939: conversion of the arguments for COALESCE and IFNULL
127130
#

mysql-test/t/cast.test

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ select cast(concat('184467440','73709551615') as signed);
156156
select cast(repeat('1',20) as unsigned);
157157
select cast(repeat('1',20) as signed);
158158

159+
# End of 4.1 tests
160+
161+
159162
#decimal-related additions
160163
select cast('1.2' as decimal(3,2));
161164
select 1e18 * cast('1.2' as decimal(3,2));

mysql-test/t/check.test

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ connection con1;
2222
reap;
2323
drop table t1;
2424

25+
# End of 4.1 tests
26+
2527
#
2628
# Bug #9897 Views: 'Check Table' crashes MySQL, with a view and a table
2729
# in the statement

mysql-test/t/comments.test

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ select 1 --2
1717
select 1 # The rest of the row will be ignored
1818
;
1919
/* line with only comment */;
20+
21+
# End of 4.1 tests

mysql-test/t/compare.test

+2
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ DROP TABLE t1;
3535
SELECT CHAR(31) = '', '' = CHAR(31);
3636
# Extra test
3737
SELECT CHAR(30) = '', '' = CHAR(30);
38+
39+
# End of 4.1 tests

mysql-test/t/connect.test

+2
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,5 @@ show tables;
7676

7777
delete from mysql.user where user=_binary"test";
7878
flush privileges;
79+
80+
# End of 4.1 tests

mysql-test/t/consistent_snapshot.test

+2
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ select * from t1; # if consistent snapshot was not set, as expected, we
3939
commit;
4040

4141
drop table t1;
42+
43+
# End of 4.1 tests

mysql-test/t/constraints.test

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ alter table t1 add constraint unique key_1(a);
2727
alter table t1 add constraint constraint_2 unique key_2(a);
2828
show create table t1;
2929
drop table t1;
30+
31+
# End of 4.1 tests

mysql-test/t/count_distinct.test

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ create table t1 (f int);
5555
select count(distinct f) from t1;
5656
drop table t1;
5757

58+
# End of 4.1 tests
59+
5860
#
5961
# Bug #6515
6062
#

mysql-test/t/count_distinct2.test

+1
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ select count(distinct s) from t1;
7979
show status like 'Created_tmp_disk_tables';
8080
drop table t1;
8181

82+
# End of 4.1 tests

mysql-test/t/count_distinct3.test

+2
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
5656
DROP TABLE t1;
5757

5858
set @@read_buffer_size=default;
59+
60+
# End of 4.1 tests

mysql-test/t/create.test

+2
Original file line numberDiff line numberDiff line change
@@ -514,3 +514,5 @@ create table test.t1 like x;
514514
--disable_warnings
515515
drop table if exists test.t1;
516516
--enable_warnings
517+
518+
# End of 4.1 tests

mysql-test/t/create_select_tmp.test

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ select * from t2;
2727
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
2828
--error 1146;
2929
select * from t2;
30+
31+
# End of 4.1 tests

mysql-test/t/csv.test

+2
Original file line numberDiff line numberDiff line change
@@ -1313,3 +1313,5 @@ INSERT INTO t1 VALUES (9410,9412);
13131313
select period from t1;
13141314

13151315
drop table if exists t1,t2,t3,t4;
1316+
1317+
# End of 4.1 tests

mysql-test/t/ctype_big5.test

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ CREATE TABLE t1 (a text) character set big5;
2727
INSERT INTO t1 VALUES ('��');
2828
SELECT * FROM t1;
2929
DROP TABLE t1;
30+
31+
# End of 4.1 tests

mysql-test/t/ctype_collate.test

+2
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,5 @@ EXPLAIN SELECT * FROM t1 WHERE s1 LIKE 'a' COLLATE latin1_german1_ci;
206206
EXPLAIN SELECT * FROM t1 WHERE s2 LIKE 'a' COLLATE latin1_german1_ci;
207207

208208
DROP TABLE t1;
209+
210+
# End of 4.1 tests

mysql-test/t/ctype_cp1250_ch.test

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ INSERT INTO t1 VALUES ('2005-01-1');
2222
SELECT * FROM t1 WHERE popisek = '2005-01-1';
2323
SELECT * FROM t1 WHERE popisek LIKE '2005-01-1';
2424
drop table t1;
25+
26+
# End of 4.1 tests

mysql-test/t/ctype_cp1251.test

+2
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ insert into t1 (a) values ('air'),
4646

4747
select * from t1 where a like 'we_%';
4848
drop table t1;
49+
50+
# End of 4.1 tests

mysql-test/t/ctype_create.test

+2
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,5 @@ show create database mysqltest2;
9898
drop database mysqltest2;
9999
--error 1046
100100
ALTER DATABASE DEFAULT CHARACTER SET latin2;
101+
102+
# End of 4.1 tests

mysql-test/t/ctype_gbk.test

+2
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ CREATE TABLE t1 (a text) character set gbk;
2828
INSERT INTO t1 VALUES (0xA3A0),(0xA1A1);
2929
SELECT hex(a) FROM t1 ORDER BY a;
3030
DROP TABLE t1;
31+
32+
# End of 4.1 tests

mysql-test/t/ctype_latin1.test

+2
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ SET collation_connection='latin1_bin';
7575
--error 1064
7676
CREATE TABLE �a (a int);
7777
SELECT '�a' as str;
78+
79+
# End of 4.1 tests

mysql-test/t/ctype_latin1_de.test

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ ALTER TABLE t1 ADD KEY ifword(col1);
133133
SELECT * FROM t1 WHERE col1='�' ORDER BY col1, BINARY col1;
134134
DROP TABLE t1;
135135

136+
# End of 4.1 tests
137+
136138
#
137139
# Bug#9509
138140
#

mysql-test/t/ctype_latin2.test

+2
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ a, lower(a) l, upper(a) u from t1 order by ha;
4848
#
4949
SELECT group_concat(a collate latin2_croatian_ci order by binary a) from t1 group by a collate latin2_croatian_ci;
5050
drop table t1;
51+
52+
# End of 4.1 tests

mysql-test/t/ctype_many.test

+2
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,5 @@ SET CHARACTER SET 'binary';
209209
SELECT * FROM t1;
210210
SELECT min(comment),count(*) FROM t1 GROUP BY ucs2_f;
211211
DROP TABLE t1;
212+
213+
# End of 4.1 tests

0 commit comments

Comments
 (0)