mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-4.1
into ramayana.hindu.god:/home/tsmith/m/bk/maint/41 sql/set_var.cc: Auto merged mysql-test/r/ctype_ucs.result: Manual merge mysql-test/t/ctype_ucs.test: Manual merge
This commit is contained in:
@ -803,6 +803,14 @@ quote(name)
|
||||
????????
|
||||
????????????????
|
||||
drop table bug20536;
|
||||
set names ucs2;
|
||||
ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
|
||||
set names ucs2 collate ucs2_bin;
|
||||
ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
|
||||
set character_set_client= ucs2;
|
||||
ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
|
||||
set character_set_client= concat('ucs', substr('2', 1));
|
||||
ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
|
||||
CREATE TABLE t1(a TEXT CHARSET ucs2 COLLATE ucs2_unicode_ci);
|
||||
INSERT INTO t1 VALUES('abcd');
|
||||
SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abcd' IN BOOLEAN MODE);
|
||||
|
@ -1109,4 +1109,9 @@ a
|
||||
13
|
||||
DEALLOCATE PREPARE st1;
|
||||
DROP TABLE t1;
|
||||
create table t1 (a int, b tinyint);
|
||||
prepare st1 from 'update t1 set b= (str_to_date(a, a))';
|
||||
execute st1;
|
||||
deallocate prepare st1;
|
||||
drop table t1;
|
||||
End of 4.1 tests.
|
||||
|
@ -535,6 +535,18 @@ select quote(name) from bug20536;
|
||||
|
||||
drop table bug20536;
|
||||
|
||||
#
|
||||
# Bug #31615: crash after set names ucs2 collate xxx
|
||||
#
|
||||
--error 1231
|
||||
set names ucs2;
|
||||
--error 1231
|
||||
set names ucs2 collate ucs2_bin;
|
||||
--error 1231
|
||||
set character_set_client= ucs2;
|
||||
--error 1231
|
||||
set character_set_client= concat('ucs', substr('2', 1));
|
||||
|
||||
#
|
||||
# BUG#31159 - fulltext search on ucs2 column crashes server
|
||||
#
|
||||
|
@ -1146,4 +1146,13 @@ EXECUTE st1;
|
||||
DEALLOCATE PREPARE st1;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug #32137: prepared statement crash with str_to_date in update clause
|
||||
#
|
||||
create table t1 (a int, b tinyint);
|
||||
prepare st1 from 'update t1 set b= (str_to_date(a, a))';
|
||||
execute st1;
|
||||
deallocate prepare st1;
|
||||
drop table t1;
|
||||
|
||||
--echo End of 4.1 tests.
|
||||
|
Reference in New Issue
Block a user