mirror of
https://github.com/MariaDB/server.git
synced 2025-11-10 23:02:54 +03:00
Merge laptop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into laptop.sanja.is.com.ua:/home/bell/mysql/bk/work-collation-4.1
This commit is contained in:
@@ -23,6 +23,47 @@ create table t1 select cast(_koi8r'
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# CAST to CHAR with/without length
|
||||
#
|
||||
select
|
||||
cast(_latin1'ab' AS char) as c1,
|
||||
cast(_latin1'a ' AS char) as c2,
|
||||
cast(_latin1'abc' AS char(2)) as c3,
|
||||
cast(_latin1'a ' AS char(2)) as c4,
|
||||
cast(_latin1'a' AS char(2)) as c5;
|
||||
|
||||
create table t1 select
|
||||
cast(_latin1'ab' AS char) as c1,
|
||||
cast(_latin1'a ' AS char) as c2,
|
||||
cast(_latin1'abc' AS char(2)) as c3,
|
||||
cast(_latin1'a ' AS char(2)) as c4,
|
||||
cast(_latin1'a' AS char(2)) as c5;
|
||||
select * from t1;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# CAST to NCHAR with/without length
|
||||
#
|
||||
select
|
||||
cast(_koi8r'<27><>' AS nchar) as c1,
|
||||
cast(_koi8r'<27> ' AS nchar) as c2,
|
||||
cast(_koi8r'<27><><EFBFBD>' AS nchar(2)) as c3,
|
||||
cast(_koi8r'<27> ' AS nchar(2)) as c4,
|
||||
cast(_koi8r'<27>' AS nchar(2)) as c5;
|
||||
|
||||
create table t1 select
|
||||
cast(_koi8r'<27><>' AS nchar) as c1,
|
||||
cast(_koi8r'<27> ' AS nchar) as c2,
|
||||
cast(_koi8r'<27><><EFBFBD>' AS nchar(2)) as c3,
|
||||
cast(_koi8r'<27> ' AS nchar(2)) as c4,
|
||||
cast(_koi8r'<27>' AS nchar(2)) as c5;
|
||||
select * from t1;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
|
||||
#
|
||||
# The following should be fixed in 4.1
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user