mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge abarkov@bk-internal:/home/bk/mysql-5.0
into mysql.com:/usr/home/bar/mysql-5.0.b9278 mysql-test/t/cast.test: Auto merged strings/ctype-big5.c: Auto merged strings/ctype-tis620.c: Auto merged mysql-test/r/cast.result: Auto merged mysql-test/r/select.result: Auto merged
This commit is contained in:
@ -170,3 +170,22 @@ SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST (0xA741ADCCA66EB6DC IN BOOLEAN MODE
|
||||
HEX(a)
|
||||
A741ADCCA66EB6DC20A7DAADCCABDCA66E
|
||||
DROP TABLE t1;
|
||||
set names big5;
|
||||
create table t1 (a char character set big5);
|
||||
insert into t1 values (0xF9D6),(0xF9D7),(0xF9D8),(0xF9D9);
|
||||
insert into t1 values (0xF9DA),(0xF9DB),(0xF9DC);
|
||||
select hex(a) a, hex(@u:=convert(a using utf8)) b,
|
||||
hex(convert(@u using big5)) c from t1 order by a;
|
||||
a b c
|
||||
F9D6 E7A281 F9D6
|
||||
F9D7 E98AB9 F9D7
|
||||
F9D8 E8A38F F9D8
|
||||
F9D9 E5A2BB F9D9
|
||||
F9DA E68192 F9DA
|
||||
F9DB E7B2A7 F9DB
|
||||
F9DC E5ABBA F9DC
|
||||
alter table t1 convert to character set utf8;
|
||||
select hex(a) from t1 where a = _big5 0xF9DC;
|
||||
hex(a)
|
||||
E5ABBA
|
||||
drop table t1;
|
||||
|
@ -2646,6 +2646,16 @@ select * from t1,t2 where f1=f3 and (f1,f2) <=> (2,null);
|
||||
f1 f2 f3
|
||||
2 NULL 2
|
||||
drop table t1,t2;
|
||||
create table t1 (f1 int not null auto_increment primary key, f2 varchar(10));
|
||||
create table t11 like t1;
|
||||
insert into t1 values(1,""),(2,"");
|
||||
show table status like 't1%';
|
||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||
t1 MyISAM 10 Dynamic 2 20 X X X X X X X X latin1_swedish_ci NULL
|
||||
t11 MyISAM 10 Dynamic 0 0 X X X X X X X X latin1_swedish_ci NULL
|
||||
select 123 as a from t1 where f1 is null;
|
||||
a
|
||||
drop table t1,t11;
|
||||
CREATE TABLE t1 ( city char(30) );
|
||||
INSERT INTO t1 VALUES ('London');
|
||||
INSERT INTO t1 VALUES ('Paris');
|
||||
|
8
mysql-test/r/wait_timeout.result
Normal file
8
mysql-test/r/wait_timeout.result
Normal file
@ -0,0 +1,8 @@
|
||||
select 1;
|
||||
1
|
||||
1
|
||||
select 2;
|
||||
ERROR HY000: MySQL server has gone away
|
||||
select 3;
|
||||
3
|
||||
3
|
@ -38,4 +38,19 @@ INSERT INTO t1 VALUES(0xA741ADCCA66EB6DC20A7DAADCCABDCA66E);
|
||||
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST (0xA741ADCCA66EB6DC IN BOOLEAN MODE);
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug#12476 Some big5 codes are still missing.
|
||||
#
|
||||
set names big5;
|
||||
create table t1 (a char character set big5);
|
||||
insert into t1 values (0xF9D6),(0xF9D7),(0xF9D8),(0xF9D9);
|
||||
insert into t1 values (0xF9DA),(0xF9DB),(0xF9DC);
|
||||
# Check round trip
|
||||
select hex(a) a, hex(@u:=convert(a using utf8)) b,
|
||||
hex(convert(@u using big5)) c from t1 order by a;
|
||||
# Check that there is no "illegal mix of collations" error with Unicode.
|
||||
alter table t1 convert to character set utf8;
|
||||
select hex(a) from t1 where a = _big5 0xF9DC;
|
||||
drop table t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
@ -2206,6 +2206,16 @@ select * from t1,t2 where f1=f3 and (f1,f2) = (2,null);
|
||||
select * from t1,t2 where f1=f3 and (f1,f2) <=> (2,null);
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# Bug #13535
|
||||
#
|
||||
create table t1 (f1 int not null auto_increment primary key, f2 varchar(10));
|
||||
create table t11 like t1;
|
||||
insert into t1 values(1,""),(2,"");
|
||||
--replace_column 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X
|
||||
show table status like 't1%';
|
||||
select 123 as a from t1 where f1 is null;
|
||||
drop table t1,t11;
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
|
1
mysql-test/t/wait_timeout-master.opt
Normal file
1
mysql-test/t/wait_timeout-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--wait-timeout=2
|
11
mysql-test/t/wait_timeout.test
Normal file
11
mysql-test/t/wait_timeout.test
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Bug #8731: wait_timeout does not work on Mac OS X
|
||||
#
|
||||
--disable_reconnect
|
||||
select 1;
|
||||
# wait_timeout is 2, so we should get disconnected now
|
||||
--sleep 5
|
||||
--error 2006
|
||||
select 2;
|
||||
--enable_reconnect
|
||||
select 3;
|
Reference in New Issue
Block a user